use previous statusbar to get screen size
This commit is contained in:
parent
f77dcc056d
commit
3fc3fd9623
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue