aboutsummaryrefslogtreecommitdiff
path: root/xorg-server
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2009-10-06 15:57:15 +0000
committermarha <marha@users.sourceforge.net>2009-10-06 15:57:15 +0000
commit30962971c0e6ffac099a0d15ced5cc773674f7f5 (patch)
tree369848d37e3ab65a6c92230eafd2965dc296b1ee /xorg-server
parent3e838b335f0369dfdac2adc7faceac8aaf9ad635 (diff)
downloadvcxsrv-30962971c0e6ffac099a0d15ced5cc773674f7f5.tar.gz
vcxsrv-30962971c0e6ffac099a0d15ced5cc773674f7f5.tar.bz2
vcxsrv-30962971c0e6ffac099a0d15ced5cc773674f7f5.zip
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.)
Diffstat (limited to 'xorg-server')
-rw-r--r--xorg-server/hw/xwin/winmultiwindowwm.c6
1 files changed, 2 insertions, 4 deletions
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;