diff --git a/awesome.c b/awesome.c index 29da9c40a..4ef6fd5db 100644 --- a/awesome.c +++ b/awesome.c @@ -298,6 +298,8 @@ main(int argc, char *argv[]) { loadawesomeprops(screen); ewmh_set_supported_hints(screen); + /* call this to at least grab root window clicks */ + window_grabbuttons(screen, None, False, True); } handler = p_new(event_handler *, LASTEvent); @@ -355,9 +357,6 @@ main(int argc, char *argv[]) signal(SIGTERM, &exit_on_signal); signal(SIGHUP, &exit_on_signal); - /* call this to at least grab root window clicks */ - window_grabbuttons(DefaultScreen(dpy), None, False, True); - /* main event loop, also reads status text from socket */ while(running) {