wibox: fix Left and Right wibox position computing (FS#512)
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
e61ab85f5d
commit
e0c56d36e6
4
wibox.c
4
wibox.c
|
@ -373,11 +373,11 @@ wibox_position_update_non_floating(wibox_t *wibox)
|
||||||
break;
|
break;
|
||||||
case Left:
|
case Left:
|
||||||
if(wibox->position == Left)
|
if(wibox->position == Left)
|
||||||
area.x += wibox->sw.geometry.height;
|
area.x += wibox->sw.geometry.width;
|
||||||
break;
|
break;
|
||||||
case Right:
|
case Right:
|
||||||
if(wibox->position == Right)
|
if(wibox->position == Right)
|
||||||
area.x -= wibox->sw.geometry.height;
|
area.x -= wibox->sw.geometry.width;
|
||||||
break;
|
break;
|
||||||
case Top:
|
case Top:
|
||||||
switch(wibox->position)
|
switch(wibox->position)
|
||||||
|
|
Loading…
Reference in New Issue