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.
oldstable
Alexandre Julliard 2006-03-30 16:23:12 +02:00
parent 2c1d696801
commit c7a1dfde9f
1 changed files with 7 additions and 0 deletions

View File

@ -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: