don't draw statusbar if it's off

This commit is contained in:
Julien Danjou 2007-11-11 23:23:38 +01:00
parent dcdbd06e56
commit 19e7737ef0
1 changed files with 4 additions and 0 deletions

View File

@ -53,6 +53,10 @@ drawstatusbar(awesome_config *awesomeconf)
Client *sel = get_current_tag(awesomeconf->tags, awesomeconf->ntags)->client_sel;
Drawable drawable;
/* don't waste our time */
if(awesomeconf->statusbar.position == BarOff)
return;
drawable = XCreatePixmap(awesomeconf->display,
RootWindow(awesomeconf->display, awesomeconf->phys_screen),
awesomeconf->statusbar.width,