aboutsummaryrefslogtreecommitdiff
path: root/xorg-server
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2012-01-26 08:15:18 +0100
committermarha <marha@users.sourceforge.net>2012-01-26 08:15:18 +0100
commitc32f68b81cd4897a450489b6adbdccd7273834c9 (patch)
treeaa11d9cf9d8d2a1415b057dea5ef24fbfcf015cb /xorg-server
parent310ce3c09ea763e759414ef83f4ff5c497dd7a0a (diff)
downloadvcxsrv-c32f68b81cd4897a450489b6adbdccd7273834c9.tar.gz
vcxsrv-c32f68b81cd4897a450489b6adbdccd7273834c9.tar.bz2
vcxsrv-c32f68b81cd4897a450489b6adbdccd7273834c9.zip
Ignore WM_DISPLAYCHANGED messages with wParam==0
Diffstat (limited to 'xorg-server')
-rw-r--r--xorg-server/hw/xwin/winwndproc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/xorg-server/hw/xwin/winwndproc.c b/xorg-server/hw/xwin/winwndproc.c
index 1f91eedae..8dbd90971 100644
--- a/xorg-server/hw/xwin/winwndproc.c
+++ b/xorg-server/hw/xwin/winwndproc.c
@@ -182,6 +182,10 @@ winWindowProc (HWND hwnd, UINT message,
"new height: %d new bpp: %d\n",
LOWORD (lParam), HIWORD (lParam), wParam);
+ /* 0 bpp has no defined meaning, ignore this message */
+ if (wParam == 0)
+ break;
+
/*
* Check for a disruptive change in depth.
* We can only display a message for a disruptive depth change,