grab buttons on all root windows

This commit is contained in:
Julien Danjou 2008-01-23 09:13:02 +01:00
parent 0bbbc7c9d5
commit 5c02326a1e
1 changed files with 2 additions and 3 deletions

View File

@ -298,6 +298,8 @@ main(int argc, char *argv[])
{ {
loadawesomeprops(screen); loadawesomeprops(screen);
ewmh_set_supported_hints(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); handler = p_new(event_handler *, LASTEvent);
@ -355,9 +357,6 @@ main(int argc, char *argv[])
signal(SIGTERM, &exit_on_signal); signal(SIGTERM, &exit_on_signal);
signal(SIGHUP, &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 */ /* main event loop, also reads status text from socket */
while(running) while(running)
{ {