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: case Floating:
break; break;
case Left: case Left:
switch(wibox->position) if(wibox->position == Left)
{
case Left:
area.x += wibox->sw.geometry.height; area.x += wibox->sw.geometry.height;
break; break;
default:
break;
}
break;
case Right:
switch(wibox->position)
{
case Right: case Right:
if(wibox->position == Right)
area.x -= wibox->sw.geometry.height; area.x -= wibox->sw.geometry.height;
break; break;
default:
break;
}
break;
case Top: case Top:
switch(wibox->position) switch(wibox->position)
{ {