Commit c7a1dfde authored by Alexandre Julliard's avatar Alexandre Julliard

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.
parent 2c1d6968
......@@ -212,6 +212,7 @@ static Bool filter_event( Display *display, XEvent *event, char *arg )
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 *display, XEvent *event, char *arg )
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:
......
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