From eb57f68ed32690f36ad35568a215d7adaa4ddc6c Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Tue, 18 Dec 2007 11:29:02 +0100 Subject: [PATCH] fix compilation errors with new globalconf stuff --- awesome.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/awesome.c b/awesome.c index 725868f60..3c1a20a78 100644 --- a/awesome.c +++ b/awesome.c @@ -74,8 +74,8 @@ cleanup_screen(int screen) Tag *t, *tn; XftFontClose(globalconf.display, globalconf.screens[screen].font); - XUngrabKey(globalconf.display, AnyKey, AnyModifier, RootWindow(globalconf.display, get_phys_screen(globalconf.display, screen))); - XDestroyWindow(globalconf.display, globalconf.screens[screen].statusbar.window); + XUngrabKey(globalconf.display, AnyKey, AnyModifier, RootWindow(globalconf.display, get_phys_screen(screen))); + XDestroyWindow(globalconf.display, globalconf.screens[screen].statusbar->window); for(t = globalconf.screens[screen].tags; t; t = tn) { @@ -137,7 +137,7 @@ cleanup() p_delete(&globalconf.configpath); - for(screen = 0; screen < get_screen_count(globalconf.display); screen++) + for(screen = 0; screen < get_screen_count(); screen++) cleanup_screen(screen); XSetInputFocus(globalconf.display, PointerRoot, RevertToPointerRoot, CurrentTime);