mirror of
https://github.com/awesomeWM/awesome
synced 2024-11-05 20:26:09 +01:00
fix window placement for left positionned statusbar
This commit is contained in:
parent
8485c13b1b
commit
a12ea9441f
1 changed files with 10 additions and 12 deletions
22
statusbar.c
22
statusbar.c
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue