From 58391a84faef3373f6cad7910fe270ec8612ae8b Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Sun, 11 Nov 2007 22:47:56 +0100 Subject: [PATCH] don't move status bar offscreen (fails on Xinerama): unmap it instead --- statusbar.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/statusbar.c b/statusbar.c index a6575397c..b2a7f8cd3 100644 --- a/statusbar.c +++ b/statusbar.c @@ -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);