From 80a6b27c268c336f04aa6afd59eb4068c2aa7de0 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Sat, 15 Sep 2007 12:45:55 +0200 Subject: [PATCH] fix barbot displaying --- awesome.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/awesome.c b/awesome.c index fd13f3e79..0438a4e74 100644 --- a/awesome.c +++ b/awesome.c @@ -36,6 +36,7 @@ #include "event.h" #include "layout.h" #include "tag.h" +#include "screen.h" Client *clients = NULL; Client *sel = NULL; @@ -227,6 +228,7 @@ void updatebarpos(Display *disp, Statusbar statusbar) { XEvent ev; + ScreenInfo *si; switch (statusbar.position) { @@ -234,7 +236,9 @@ updatebarpos(Display *disp, Statusbar statusbar) XMoveWindow(disp, statusbar.window, 0, 0); break; case BarBot: - XMoveWindow(disp, statusbar.window, 0, get_windows_area_width(disp, statusbar) - statusbar.height); + si = get_display_info(disp, statusbar); + XMoveWindow(disp, statusbar.window, 0, si->height); + XFree(si); break; case BarOff: XMoveWindow(disp, statusbar.window, 0, 0 - statusbar.height);