From cb0203b0a052b9272c705780357fc3a6e52454d6 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Sun, 30 Dec 2007 14:23:01 +0100 Subject: [PATCH] don't display if statusbar off --- statusbar.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/statusbar.c b/statusbar.c index af7d85a9a..09a2eef61 100644 --- a/statusbar.c +++ b/statusbar.c @@ -110,6 +110,10 @@ statusbar_display(int screen) VirtScreen vscreen = globalconf.screens[screen]; int phys_screen = get_phys_screen(screen); + /* don't waste our time */ + if(vscreen.statusbar->position == BarOff) + return; + if(vscreen.statusbar->position == BarRight || vscreen.statusbar->position == BarLeft) XCopyArea(globalconf.display, vscreen.statusbar->drawable,