From 62bfc2e9ac24992ca47892cae7dfbf773d538ab3 Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Sun, 12 Apr 2009 21:04:05 +0200 Subject: [PATCH] Some minor code optimization It's just easier to read this way. :) Signed-off-by: Uli Schlachter --- wibox.c | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/wibox.c b/wibox.c index cefc65c9..835ad37d 100644 --- a/wibox.c +++ b/wibox.c @@ -359,24 +359,12 @@ wibox_position_update(wibox_t *wibox) case Floating: break; case Left: - switch(wibox->position) - { - case Left: + if(wibox->position == Left) area.x += wibox->sw.geometry.height; - break; - default: - break; - } break; case Right: - switch(wibox->position) - { - case Right: + if(wibox->position == Right) area.x -= wibox->sw.geometry.height; - break; - default: - break; - } break; case Top: switch(wibox->position)