summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter@cs.unisa.edu.au>2007-07-10 13:56:38 +0930
committerPeter Hutterer <peter@cs.unisa.edu.au>2007-07-10 19:11:30 +0930
commitffdf8f3e452638e6b050fccabee465d6c0300f45 (patch)
treed2b83762331f5a590987b29437e8f0ac2803d634
parent583e988b9f7cfb9293144c8309023c0dd1766715 (diff)
DeliverEventsToWindow: ensure that genericMask has a defined value.
-rwxr-xr-xautogen.sh2
-rw-r--r--dix/events.c5
2 files changed, 3 insertions, 4 deletions
diff --git a/autogen.sh b/autogen.sh
index 66acd288d..54e9f337d 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -9,4 +9,4 @@ cd $srcdir
autoreconf -v --install || exit 1
cd $ORIGDIR || exit $?
-$srcdir/configure --enable-maintainer-mode --disable-dmx --enable-kdrive "$@"
+$srcdir/configure --enable-maintainer-mode --disable-dmx --enable-dri --enable-kdrive "$@"
diff --git a/dix/events.c b/dix/events.c
index 097ebba69..7de8d2ea6 100644
--- a/dix/events.c
+++ b/dix/events.c
@@ -2020,9 +2020,8 @@ DeliverEventsToWindow(DeviceIntPtr pDev, WindowPtr pWin, xEvent
/* get the XGE event mask.
* FIXME: needs to be freed somewhere too.
*/
- if (!pWin->optional || !pWin->optional->geMasks)
- tempGrab.genericMasks = NULL;
- else
+ tempGrab.genericMasks = NULL;
+ if (pWin->optional && pWin->optional->geMasks)
{
GenericClientMasksPtr gemasks = pWin->optional->geMasks;
GenericMaskPtr geclient = gemasks->geClients;