Commit 4cb6334b authored by Rémi Bernon's avatar Rémi Bernon Committed by Alexandre Julliard

winex11.drv: Don't assume that GenericEvent has a window.

It doesn't, and we then lookup HWND from an invalid Window value. Signed-off-by: 's avatarRémi Bernon <rbernon@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent fbed4742
......@@ -390,6 +390,9 @@ static inline BOOL call_event_handler( Display *display, XEvent *event )
return FALSE; /* no handler, ignore it */
}
#ifdef GenericEvent
if (event->type == GenericEvent) hwnd = 0; else
#endif
if (XFindContext( display, event->xany.window, winContext, (char **)&hwnd ) != 0)
hwnd = 0; /* not for a registered window */
if (!hwnd && event->xany.window == root_window) hwnd = GetDesktopWindow();
......
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