From c32f68b81cd4897a450489b6adbdccd7273834c9 Mon Sep 17 00:00:00 2001 From: marha Date: Thu, 26 Jan 2012 08:15:18 +0100 Subject: Ignore WM_DISPLAYCHANGED messages with wParam==0 --- xorg-server/hw/xwin/winwndproc.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'xorg-server/hw/xwin') 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, -- cgit v1.2.3