Commit 19ad5bd5 authored by Rémi Bernon's avatar Rémi Bernon Committed by Alexandre Julliard

server: Peek wine internal driver messages regardless of filter.

parent 8fa8ebaa
......@@ -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",
};
......
......@@ -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 );
......
......@@ -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,
......
......@@ -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
......
......@@ -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,
......
......@@ -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
};
......
......@@ -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 &&
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment