]> Dogcows Code - chaz/openbox/blobdiff - openbox/frame.c
don't assume screen 0
[chaz/openbox] / openbox / frame.c
index 5c3922b1547fde4e82d7f7865125ebde01c5f2f9..7c427b3f85ce83bdf21473406f1edaeb9ffbfecb 100644 (file)
@@ -109,8 +109,8 @@ ObFrame *frame_new(ObClient *client)
             XCreateColormap(ob_display,
                             RootWindow(ob_display, ob_screen),
                             visual, AllocNone);
-        attrib.background_pixel = BlackPixel(ob_display, 0);
-        attrib.border_pixel = BlackPixel(ob_display, 0);
+        attrib.background_pixel = BlackPixel(ob_display, ob_screen);
+        attrib.border_pixel = BlackPixel(ob_display, ob_screen);
     }
     attrib.event_mask = FRAME_EVENTMASK;
     self->window = createWindow(RootWindow(ob_display, ob_screen), visual,
This page took 0.023224 seconds and 4 git commands to generate.