Commit 6d45e7a9 authored by Ulrich Weigand's avatar Ulrich Weigand Committed by Alexandre Julliard

Avoid unnecessary error messages.

parent 5b803350
......@@ -385,7 +385,22 @@ void X11DRV_EVENT_Synchronize()
static void EVENT_ProcessEvent( XEvent *event )
{
WND *pWnd;
switch (event->type)
{
/* We get all these because of StructureNotifyMask.
This check is placed here to avoid getting error messages below,
as X might send some of these even for windows that have already
been deleted ... */
case UnmapNotify:
case CirculateNotify:
case CreateNotify:
case DestroyNotify:
case GravityNotify:
case ReparentNotify:
return;
}
if ( TSXFindContext( display, event->xany.window, winContext,
(char **)&pWnd ) != 0) {
if ( event->type == ClientMessage) {
......@@ -490,15 +505,6 @@ static void EVENT_ProcessEvent( XEvent *event )
case NoExpose:
break;
/* We get all these because of StructureNotifyMask. */
case UnmapNotify:
case CirculateNotify:
case CreateNotify:
case DestroyNotify:
case GravityNotify:
case ReparentNotify:
break;
case MapNotify:
if (!pWnd) return;
EVENT_MapNotify( pWnd->hwndSelf, (XMapEvent *)event );
......
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