diff -u openbox/frame.c openbox/frame.c --- openbox/frame.c 26 Aug 2006 00:00:07 -0000 +++ openbox/frame.c (working copy) @@ -86,7 +86,13 @@ mask |= CWColormap; vis = client_attrib.visual; depth = client_attrib.depth; - attrib.colormap = client_attrib.colormap; + + /* client_attrib.colormap might have been already freed, so create + * our own. + */ + attrib.colormap = XCreateColormap(ob_display, + RootWindow(ob_display, ob_screen), + vis, AllocNone); } }