use previous statusbar to get screen size

This commit is contained in:
Julien Danjou 2008-01-16 15:26:48 +01:00
parent f77dcc056d
commit 3fc3fd9623
1 changed files with 1 additions and 1 deletions

View File

@ -156,7 +156,7 @@ statusbar_init(Statusbar *statusbar, int screen)
XSetWindowAttributes wa; XSetWindowAttributes wa;
int phys_screen = get_phys_screen(screen); int phys_screen = get_phys_screen(screen);
Area area = get_screen_area(statusbar->screen, Area area = get_screen_area(statusbar->screen,
NULL, globalconf.screens[screen].statusbar,
&globalconf.screens[screen].padding); &globalconf.screens[screen].padding);
if(statusbar->height <= 0) if(statusbar->height <= 0)