Files

17 lines
769 B
C

// SPDX-License-Identifier: LGPL-2.1-or-later
#pragma once
#include <windows.h>
// Query Wine's actual X11 window, not a title/geometry search. Origin translates
// desktop-local Win32 positions to physical root coordinates in virtual mode.
bool review_x11_geometry(HWND window, RECT &bounds, POINT &origin);
// True only when both the window manager and X11 focus select this prefix's
// virtual desktop, with keyboard focus on the desktop itself or, when supplied,
// the verified application's X11 child hierarchy.
bool wine_x11_desktop_focused(HWND window = nullptr);
// Queue Win32 activation on the verified child's thread and set native focus.
// A true result means dispatched; control focus arrives asynchronously.
bool wine_x11_restore_focus(HWND window);