wibox: fix Left and Right wibox position computing (FS#512)

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
qsd 2009-04-27 21:48:43 +02:00 committed by Julien Danjou
parent e61ab85f5d
commit e0c56d36e6
1 changed files with 2 additions and 2 deletions

View File

@ -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)