1
0
Fork 0
mirror of synced 2025-03-07 03:53:26 +01:00

server: Peek wine internal driver messages regardless of filter.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=55774
This commit is contained in:
Rémi Bernon 2023-12-11 20:26:59 +01:00 committed by Alexandre Julliard
parent 8fa8ebaa47
commit 19ad5bd598
7 changed files with 15 additions and 11 deletions

View file

@ -1139,7 +1139,6 @@ static const char * const WINEMessageTypeNames[SPY_MAX_WINEMSGNUM + 1] =
"WM_WINE_SETACTIVEWINDOW",
"WM_WINE_KEYBOARD_LL_HOOK",
"WM_WINE_MOUSE_LL_HOOK",
"WM_WINE_CLIPCURSOR",
"WM_WINE_UPDATEWINDOWSTATE",
};

View file

@ -125,7 +125,7 @@ extern MONITORINFOEXW default_monitor;
enum android_window_messages
{
WM_ANDROID_REFRESH = 0x80001000,
WM_ANDROID_REFRESH = WM_WINE_FIRST_DRIVER_MSG,
};
extern void init_gralloc( const struct hw_module_t *module );

View file

@ -91,10 +91,10 @@ extern BOOL macdrv_SetDeviceGammaRamp(PHYSDEV dev, LPVOID ramp);
* Mac USER driver
*/
/* Mac driver private messages, must be in the range 0x80001000..0x80001fff */
/* Mac driver private messages */
enum macdrv_window_messages
{
WM_MACDRV_SET_WIN_REGION = 0x80001000,
WM_MACDRV_SET_WIN_REGION = WM_WINE_FIRST_DRIVER_MSG,
WM_MACDRV_RESET_DEVICE_METRICS,
WM_MACDRV_DISPLAYCHANGE,
WM_MACDRV_ACTIVATE_ON_FOLLOWING_FOCUS,

View file

@ -59,9 +59,9 @@ extern struct wayland process_wayland;
enum wayland_window_message
{
WM_WAYLAND_INIT_DISPLAY_DEVICES = 0x80001000,
WM_WAYLAND_CONFIGURE = 0x80001001,
WM_WAYLAND_SET_FOREGROUND = 0x80001002,
WM_WAYLAND_INIT_DISPLAY_DEVICES = WM_WINE_FIRST_DRIVER_MSG,
WM_WAYLAND_CONFIGURE,
WM_WAYLAND_SET_FOREGROUND,
};
enum wayland_surface_config_state

View file

@ -585,10 +585,10 @@ extern void (*pXFreeEventData)( Display *display, XEvent /*XGenericEventCookie*/
extern DWORD EVENT_x11_time_to_win32_time(Time time);
/* X11 driver private messages, must be in the range 0x80001000..0x80001fff */
/* X11 driver private messages */
enum x11drv_window_messages
{
WM_X11DRV_UPDATE_CLIPBOARD = 0x80001000,
WM_X11DRV_UPDATE_CLIPBOARD = WM_WINE_FIRST_DRIVER_MSG,
WM_X11DRV_SET_WIN_REGION,
WM_X11DRV_DESKTOP_RESIZED,
WM_X11DRV_DELETE_TAB,

View file

@ -488,10 +488,10 @@ enum wine_internal_message
WM_WINE_SETACTIVEWINDOW,
WM_WINE_KEYBOARD_LL_HOOK,
WM_WINE_MOUSE_LL_HOOK,
WM_WINE_CLIPCURSOR,
WM_WINE_SETCURSOR,
WM_WINE_UPDATEWINDOWSTATE,
WM_WINE_FIRST_DRIVER_MSG = 0x80001000, /* range of messages reserved for the USER driver */
WM_WINE_CLIPCURSOR = 0x80001ff0, /* internal driver notification messages */
WM_WINE_SETCURSOR,
WM_WINE_LAST_DRIVER_MSG = 0x80001fff
};

View file

@ -2762,6 +2762,11 @@ DECL_HANDLER(get_message)
get_hardware_message( current, req->hw_id, get_win, req->get_first, req->get_last, req->flags, reply ))
return;
/* check for any internal driver message */
if (get_hardware_message( current, req->hw_id, get_win, WM_WINE_FIRST_DRIVER_MSG,
WM_WINE_LAST_DRIVER_MSG, req->flags, reply ))
return;
/* now check for WM_PAINT */
if ((filter & QS_PAINT) &&
queue->paint_count &&