WindowMaker/WindowMaker-composite.patch
OBS User autobuild 59351d6e18 Accepting request 35085 from X11:windowmanagers
Copy from X11:windowmanagers/WindowMaker based on submit request 35085 from user coolo

OBS-URL: https://build.opensuse.org/request/show/35085
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/WindowMaker?expand=0&rev=14
2010-03-19 08:16:42 +00:00

21 lines
692 B
Diff

--- src/main.c
+++ src/main.c
@@ -747,6 +747,17 @@
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)