Avoid unnecessary error messages.
This commit is contained in:
parent
5b803350e9
commit
6d45e7a9ef
|
@ -386,6 +386,21 @@ 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 );
|
||||
|
|
Loading…
Reference in New Issue