don't display if statusbar off

This commit is contained in:
Julien Danjou 2007-12-30 14:23:01 +01:00
parent 9a5e745114
commit cb0203b0a0
1 changed files with 4 additions and 0 deletions

View File

@ -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,