From 30962971c0e6ffac099a0d15ced5cc773674f7f5 Mon Sep 17 00:00:00 2001 From: marha Date: Tue, 6 Oct 2009 15:57:15 +0000 Subject: Call XSelectInput when a window is mapped and not when it is created. (There seems to be windows which created and destroyed soon without being mapped to real windows. This is causing some errors.) --- xorg-server/hw/xwin/winmultiwindowwm.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'xorg-server/hw') diff --git a/xorg-server/hw/xwin/winmultiwindowwm.c b/xorg-server/hw/xwin/winmultiwindowwm.c index 9ee151d95..5e4e98b69 100644 --- a/xorg-server/hw/xwin/winmultiwindowwm.c +++ b/xorg-server/hw/xwin/winmultiwindowwm.c @@ -300,9 +300,7 @@ PopMessage (WMMsgQueuePtr pQueue, WMInfoPtr pWMInfo) /* Drop the number of elements in the queue by one */ --(pQueue->nQueueSize); -#if CYGMULTIWINDOW_DEBUG - ErrorF ("Queue Size %d %d\n", pQueue->nQueueSize, QueueSize(pQueue)); -#endif + winDebug ("Queue Size %d %d\n", pQueue->nQueueSize, QueueSize(pQueue)); /* Release the queue mutex */ pthread_mutex_unlock (&pQueue->pmMutex); @@ -963,7 +961,7 @@ winMultiWindowXMsgProc (void *pArg) XNextEvent (pProcArg->pDisplay, &event); /* Branch on event type */ - if (event.type == CreateNotify) + if (event.type == MapNotify /* CreateNotify */) { XWindowAttributes attr; -- cgit v1.2.3