fix window placement for left positionned statusbar

This commit is contained in:
Julien Danjou 2008-01-04 13:28:51 +01:00
parent 8485c13b1b
commit a12ea9441f

View file

@ -222,22 +222,20 @@ statusbar_update_position(Statusbar *statusbar)
switch(statusbar->position)
{
default:
XMoveWindow(globalconf.display,
statusbar->window,
area.x,
area.y);
XMoveWindow(globalconf.display, statusbar->window,
area.x, area.y);
break;
case BarLeft:
XMoveWindow(globalconf.display, statusbar->window,
area.x, (area.y + area.height) - statusbar->width);
break;
case BarRight:
XMoveWindow(globalconf.display,
statusbar->window,
area.x + (area.width - statusbar->height),
area.y);
XMoveWindow(globalconf.display, statusbar->window,
area.x + (area.width - statusbar->height), area.y);
break;
case BarBot:
XMoveWindow(globalconf.display,
statusbar->window,
area.x,
area.height - statusbar->height);
XMoveWindow(globalconf.display, statusbar->window,
area.x, area.height - statusbar->height);
break;
case BarOff:
XUnmapWindow(globalconf.display, statusbar->window);