don't assume screen 0

This commit is contained in:
Dana Jansens 2007-05-20 03:39:40 +00:00
parent 8159ac5f86
commit 2dada607c5

View file

@ -109,8 +109,8 @@ ObFrame *frame_new(ObClient *client)
XCreateColormap(ob_display, XCreateColormap(ob_display,
RootWindow(ob_display, ob_screen), RootWindow(ob_display, ob_screen),
visual, AllocNone); visual, AllocNone);
attrib.background_pixel = BlackPixel(ob_display, 0); attrib.background_pixel = BlackPixel(ob_display, ob_screen);
attrib.border_pixel = BlackPixel(ob_display, 0); attrib.border_pixel = BlackPixel(ob_display, ob_screen);
} }
attrib.event_mask = FRAME_EVENTMASK; attrib.event_mask = FRAME_EVENTMASK;
self->window = createWindow(RootWindow(ob_display, ob_screen), visual, self->window = createWindow(RootWindow(ob_display, ob_screen), visual,