mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-25 00:10:05 +01:00
hw/xwin: Ignore WM_DISPLAYCHANGE messages with 0 bpp
Ignore WM_DISPLAYCHANGE messages which indicate bpp is changing to 0. That has no defined meaning I can find, but some graphics card drivers appear to generate it on suspend/resume or screensaver activate/deactivate. Signed-off-by: Colin Harrison <colin.harrison@virgin.net> Reviewed-by: Jon TURNEY <jon.turney@dronecode.org.uk>
This commit is contained in:
parent
bea6fb6c7a
commit
ced9db6595
1 changed files with 4 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue