From 9fdf750750c7ee6f6e9e44cd359ce6a1aae53227 Mon Sep 17 00:00:00 2001 From: Ivan Kanakarakis Date: Sat, 14 Jan 2012 15:53:07 +0200 Subject: if CLICK_TO_FOCUS is set, grab button1 --- monsterwm.c | 1 + 1 file changed, 1 insertion(+) 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 */ -- cgit v1.3.1