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
1 changed files with 16 additions and 10 deletions

View File

@ -385,7 +385,22 @@ void X11DRV_EVENT_Synchronize()
static void EVENT_ProcessEvent( XEvent *event ) static void EVENT_ProcessEvent( XEvent *event )
{ {
WND *pWnd; 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, if ( TSXFindContext( display, event->xany.window, winContext,
(char **)&pWnd ) != 0) { (char **)&pWnd ) != 0) {
if ( event->type == ClientMessage) { if ( event->type == ClientMessage) {
@ -490,15 +505,6 @@ static void EVENT_ProcessEvent( XEvent *event )
case NoExpose: case NoExpose:
break; break;
/* We get all these because of StructureNotifyMask. */
case UnmapNotify:
case CirculateNotify:
case CreateNotify:
case DestroyNotify:
case GravityNotify:
case ReparentNotify:
break;
case MapNotify: case MapNotify:
if (!pWnd) return; if (!pWnd) return;
EVENT_MapNotify( pWnd->hwndSelf, (XMapEvent *)event ); EVENT_MapNotify( pWnd->hwndSelf, (XMapEvent *)event );