From 30256b3be3c784b824db30723462c56bdadbe7e6 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Thu, 24 Jan 2008 20:22:39 +0100 Subject: [PATCH] cosmetic --- event.c | 4 +++- statusbar.c | 6 ++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/event.c b/event.c index 9676de73..361d1791 100644 --- a/event.c +++ b/event.c @@ -96,7 +96,7 @@ handle_event_buttonpress(XEvent *e) return; } break; - default: + case Left: for(widget = statusbar->widgets; widget; widget = widget->next) if(statusbar->sw->geometry.width - ev->y >= widget->area.x && statusbar->sw->geometry.width - ev->y @@ -107,6 +107,8 @@ handle_event_buttonpress(XEvent *e) return; } break; + case Off: + break; } if((c = get_client_bywin(globalconf.clients, ev->window))) diff --git a/statusbar.c b/statusbar.c index c0fd45af..8abbc92e 100644 --- a/statusbar.c +++ b/statusbar.c @@ -160,10 +160,8 @@ void statusbar_display(Statusbar *statusbar) { /* don't waste our time */ - if(statusbar->position == Off) - return; - - simplewindow_refresh_drawable(statusbar->sw, get_phys_screen(statusbar->screen)); + if(statusbar->position != Off) + simplewindow_refresh_drawable(statusbar->sw, get_phys_screen(statusbar->screen)); } void