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:
parent
34554d8958
commit
62bfc2e9ac
16
wibox.c
16
wibox.c
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue