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;
|
||||
case Left:
|
||||
if(wibox->position == Left)
|
||||
area.x += wibox->sw.geometry.height;
|
||||
area.x += wibox->sw.geometry.width;
|
||||
break;
|
||||
case Right:
|
||||
if(wibox->position == Right)
|
||||
area.x -= wibox->sw.geometry.height;
|
||||
area.x -= wibox->sw.geometry.width;
|
||||
break;
|
||||
case Top:
|
||||
switch(wibox->position)
|
||||
|
|
Loading…
Reference in New Issue