mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-20 04:48:06 +01:00
Workaround for Composite problems when default depth is not 24.
This is really a workaround patch, the proper fix would be to have WindowMaker know about Composite, and take advantage of it's features.
This commit is contained in:
committed by
Carlos R. Mafra
parent
ee28b0257a
commit
e4800e84d0
10
src/main.c
10
src/main.c
@@ -852,6 +852,16 @@ real_main(int argc, char **argv)
|
||||
exit(1);
|
||||
}
|
||||
|
||||
if (wVisualID < 0)
|
||||
/*
|
||||
* If unspecified, use default visual instead of waiting
|
||||
* for wrlib/context.c:bestContext() that may end up choosing
|
||||
* the "fake" 24 bits added by the Composite extension.
|
||||
* This is required to avoid all sort of corruptions when
|
||||
* composite is enabled, and at a depth other than 24.
|
||||
*/
|
||||
wVisualID = (int)DefaultVisual(dpy, DefaultScreen(dpy))->visualid;
|
||||
|
||||
/* check if the user specified a complete display name (with screen).
|
||||
* If so, only manage the specified screen */
|
||||
if (DisplayName)
|
||||
|
||||
Reference in New Issue
Block a user