From 19e7737ef075976e0352979a7f74a783126a7f18 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Sun, 11 Nov 2007 23:23:38 +0100 Subject: [PATCH] don't draw statusbar if it's off --- statusbar.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/statusbar.c b/statusbar.c index b2a7f8cd3..63c414698 100644 --- a/statusbar.c +++ b/statusbar.c @@ -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,