Don't warn on invalid window for KeymapNotify
Mike Hearn
mh at codeweavers.com
Thu Mar 18 13:02:01 CST 2004
Mike Hearn <mh at codeweavers.com>
The KeymapNotify event does not use the window member, so don't warn
about it being unknown.
Index: dlls/x11drv/event.c
===================================================================
RCS file: /cvstrees/crossover/office/wine/dlls/x11drv/event.c,v
retrieving revision 1.38
diff -u -r1.38 event.c
--- dlls/x11drv/event.c 19 Feb 2004 18:13:59 -0000 1.38
+++ dlls/x11drv/event.c 18 Mar 2004 18:55:58 -0000
@@ -276,7 +276,9 @@
wine_tsx11_unlock();
if (!hWnd && event->xany.window == root_window) hWnd = GetDesktopWindow();
- if (!hWnd && event->type != PropertyNotify && event->type != MappingNotify)
+ if (event->type == KeymapNotify)
+ TRACE("Got event KeymapNotify, GetFocus()=%p\n", GetFocus());
+ else if (!hWnd && event->type != PropertyNotify && event->type != MappingNotify)
WARN( "Got event %s for unknown Window %08lx\n",
event_names[event->type], event->xany.window );
else if (event->type <= MappingNotify)
More information about the wine-patches
mailing list