mirror of
https://github.com/awesomeWM/awesome
synced 2024-11-17 07:47:41 +01:00
don't move status bar offscreen (fails on Xinerama): unmap it instead
This commit is contained in:
parent
651dcc5c9e
commit
58391a84fa
1 changed files with 2 additions and 1 deletions
|
@ -247,6 +247,7 @@ updatebarpos(Display *disp, Statusbar statusbar)
|
|||
XEvent ev;
|
||||
ScreenInfo *si = get_screen_info(disp, statusbar.screen, NULL);
|
||||
|
||||
XMapRaised(disp, statusbar.window);
|
||||
switch (statusbar.position)
|
||||
{
|
||||
default:
|
||||
|
@ -259,7 +260,7 @@ updatebarpos(Display *disp, Statusbar statusbar)
|
|||
XMoveWindow(disp, statusbar.window, si[statusbar.screen].x_org, si[statusbar.screen].height - statusbar.height);
|
||||
break;
|
||||
case BarOff:
|
||||
XMoveWindow(disp, statusbar.window, si[statusbar.screen].x_org, si[statusbar.screen].y_org - statusbar.height);
|
||||
XUnmapWindow(disp, statusbar.window);
|
||||
break;
|
||||
}
|
||||
p_delete(&si);
|
||||
|
|
Loading…
Reference in a new issue