Avoid unnecessary error messages.

This commit is contained in:
Ulrich Weigand 1999-03-16 10:37:30 +00:00 committed by Alexandre Julliard
parent 5b803350e9
commit 6d45e7a9ef

View file

@ -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 );