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
1 changed files with 10 additions and 12 deletions

View File

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