Alexandre Julliard : x11drv: Filter a few more event types in filter_event.

Alexandre Julliard julliard at wine.codeweavers.com
Thu Mar 30 09:41:10 CST 2006


Module: wine
Branch: refs/heads/master
Commit: c7a1dfde9fd25652f29c2615beb8d843c94759c3
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=c7a1dfde9fd25652f29c2615beb8d843c94759c3

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Thu Mar 30 16:23:12 2006 +0200

x11drv: Filter a few more event types in filter_event.

ConfigureNotify and related events should only be processed when
posted messages are selected. There's no need to handle MappingNotify
if keyboard events are not selected.

---

 dlls/x11drv/event.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/dlls/x11drv/event.c b/dlls/x11drv/event.c
index 53c1a6a..98e40b8 100644
--- a/dlls/x11drv/event.c
+++ b/dlls/x11drv/event.c
@@ -212,6 +212,7 @@ static Bool filter_event( Display *displ
     case KeyPress:
     case KeyRelease:
     case KeymapNotify:
+    case MappingNotify:
         return (mask & QS_KEY) != 0;
     case ButtonPress:
     case ButtonRelease:
@@ -222,6 +223,12 @@ static Bool filter_event( Display *displ
         return (mask & QS_MOUSEMOVE) != 0;
     case Expose:
         return (mask & QS_PAINT) != 0;
+    case FocusIn:
+    case FocusOut:
+    case MapNotify:
+    case UnmapNotify:
+    case ConfigureNotify:
+    case PropertyNotify:
     case ClientMessage:
         return (mask & QS_POSTMESSAGE) != 0;
     default:




More information about the wine-cvs mailing list