diff options
Diffstat (limited to 'monsterwm.c')
| -rw-r--r-- | monsterwm.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/monsterwm.c b/monsterwm.c index c04714b..f4b8091 100644 --- a/monsterwm.c +++ b/monsterwm.c @@ -217,6 +217,7 @@ void addwindow(Window w) { prevfocus = current; XSelectInput(dis, ((current = c)->win = w), PropertyChangeMask|(FOLLOW_MOUSE?EnterWindowMask:0)); + if (CLICK_TO_FOCUS) XGrabButton(dis, Button1, None, w, True, ButtonPressMask, GrabModeAsync, GrabModeAsync, None, None); } /* on the press of a button check to see if there's a binded function to call */ |
