diff options
author | sabetts <sabetts> | 2001-03-14 08:15:07 +0000 |
---|---|---|
committer | sabetts <sabetts> | 2001-03-14 08:15:07 +0000 |
commit | a777e8317fb0087d75498a7d61ce80ac2caea8a1 (patch) | |
tree | 1164d76ee55fbbf9676e15fdd94c7c6df0c687b2 /src/list.c | |
parent | 270248e519533aa5d99f3ff4acdf613d6798546e (diff) | |
download | ratpoison-a777e8317fb0087d75498a7d61ce80ac2caea8a1.zip |
* src/events.c (delegate_event): calls focus_change on FocusOut
and FocusIn events.
(focus_change): new function
* src/list.c (add_to_window_list): add FocusChangeMask to the
window's event mask.
Diffstat (limited to 'src/list.c')
-rw-r--r-- | src/list.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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); |