don't display if statusbar off
This commit is contained in:
parent
9a5e745114
commit
cb0203b0a0
|
@ -110,6 +110,10 @@ statusbar_display(int screen)
|
||||||
VirtScreen vscreen = globalconf.screens[screen];
|
VirtScreen vscreen = globalconf.screens[screen];
|
||||||
int phys_screen = get_phys_screen(screen);
|
int phys_screen = get_phys_screen(screen);
|
||||||
|
|
||||||
|
/* don't waste our time */
|
||||||
|
if(vscreen.statusbar->position == BarOff)
|
||||||
|
return;
|
||||||
|
|
||||||
if(vscreen.statusbar->position == BarRight
|
if(vscreen.statusbar->position == BarRight
|
||||||
|| vscreen.statusbar->position == BarLeft)
|
|| vscreen.statusbar->position == BarLeft)
|
||||||
XCopyArea(globalconf.display, vscreen.statusbar->drawable,
|
XCopyArea(globalconf.display, vscreen.statusbar->drawable,
|
||||||
|
|
Loading…
Reference in New Issue