From a12ea9441f3af7f64ab02115a94e274d093ed4bd Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Fri, 4 Jan 2008 13:28:51 +0100 Subject: [PATCH] fix window placement for left positionned statusbar --- statusbar.c | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/statusbar.c b/statusbar.c index 04753782..f264188e 100644 --- a/statusbar.c +++ b/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);