From 0cb6f81276a7e60c322990dfa1027136ef8c9633 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Fri, 21 Mar 2003 09:54:54 +0000 Subject: [PATCH] dont use the client's colormap if it is set to None! --- openbox/screen.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/openbox/screen.c b/openbox/screen.c index 2e6ff3f1..073b565f 100644 --- a/openbox/screen.c +++ b/openbox/screen.c @@ -430,7 +430,8 @@ void screen_install_colormap(Client *client, gboolean install) XUninstallColormap(ob_display, render_colormap); } else { XWindowAttributes wa; - if (XGetWindowAttributes(ob_display, client->window, &wa)) { + if (XGetWindowAttributes(ob_display, client->window, &wa) && + wa.colormap != None) { if (install) XInstallColormap(ob_display, wa.colormap); else -- 2.39.2