summaryrefslogtreecommitdiff
path: root/src/list.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/list.c')
-rw-r--r--src/list.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/list.c b/src/list.c
index 2192b1e..9bf67d5 100644
--- a/src/list.c
+++ b/src/list.c
@@ -63,7 +63,8 @@ add_to_window_list (screen_info *s, Window w)
get_mouse_root_position (new_window, &new_window->mouse_x, &new_window->mouse_y);
- XSelectInput (dpy, new_window->w, PropertyChangeMask | ColormapChangeMask);
+ XSelectInput (dpy, new_window->w,
+ PropertyChangeMask | ColormapChangeMask | FocusChangeMask);
new_window->name = xmalloc (strlen ("Unnamed") + 1);