fix window placement for left positionned statusbar
This commit is contained in:
parent
8485c13b1b
commit
a12ea9441f
22
statusbar.c
22
statusbar.c
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue