From 595003b8e1361115d27e7986d4591b0c233931ab Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Wed, 23 Jan 2008 20:58:05 +0100 Subject: [PATCH] fix restart stuff --- awesome.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/awesome.c b/awesome.c index 4ef6fd5db..d2ca36432 100644 --- a/awesome.c +++ b/awesome.c @@ -289,6 +289,8 @@ main(int argc, char *argv[]) /* parse config */ config_parse(confpath); + scan(); + /* for each virtual screen */ for(screen = 0; screen < globalconf.nscreens; screen++) setup(screen); @@ -331,8 +333,6 @@ main(int argc, char *argv[]) handler[randr_event_base + RRScreenChangeNotify] = handle_event_randr_screen_change_notify; } - scan(); - XSync(dpy, False); /* get socket fd */ @@ -357,6 +357,10 @@ main(int argc, char *argv[]) signal(SIGTERM, &exit_on_signal); signal(SIGHUP, &exit_on_signal); + /* refresh everything before waiting events */ + statusbar_refresh(); + layout_refresh(); + /* main event loop, also reads status text from socket */ while(running) {