Some minor code optimization

It's just easier to read this way. :)

Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
Uli Schlachter 2009-04-12 21:04:05 +02:00
parent 34554d8958
commit 62bfc2e9ac
1 changed files with 2 additions and 14 deletions

16
wibox.c
View File

@ -359,25 +359,13 @@ 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)
{