diff options
author | Havoc Pennington <hp@pobox.com> | 2003-06-07 05:06:48 +0000 |
---|---|---|
committer | Havoc Pennington <hp@src.gnome.org> | 2003-06-07 05:06:48 +0000 |
commit | 6e7191e97cb974fc553d7762c0a777874bb05366 (patch) | |
tree | f81f5eb76fe49060a37109d438d8c21efd0175dc | |
parent | ee6e23c918a7f8137a1af973681ee954ecdb1f06 (diff) | |
download | metacity-6e7191e97cb974fc553d7762c0a777874bb05366.tar.gz |
drop the mouse button grabs for the focused window; we'll see if this
2003-06-07 Havoc Pennington <hp@pobox.com>
* src/window.c (meta_window_notify_focus): drop the mouse button
grabs for the focused window; we'll see if this breaks anything.
It should fix #102209
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | src/window.c | 6 |
2 files changed, 12 insertions, 0 deletions
@@ -1,3 +1,9 @@ +2003-06-07 Havoc Pennington <hp@pobox.com> + + * src/window.c (meta_window_notify_focus): drop the mouse button + grabs for the focused window; we'll see if this breaks anything. + It should fix #102209 + 2003-05-21 Havoc Pennington <hp@pobox.com> * NEWS: update diff --git a/src/window.c b/src/window.c index d3cf7865..8ee2cc12 100644 --- a/src/window.c +++ b/src/window.c @@ -3974,6 +3974,9 @@ meta_window_notify_focus (MetaWindow *window, /* move into FOCUSED_WINDOW layer */ meta_window_update_layer (window); + + /* Ungrab click to focus button */ + meta_display_ungrab_focus_window_button (window->display, window->xwindow); } } else if (event->type == FocusOut || @@ -4010,6 +4013,9 @@ meta_window_notify_focus (MetaWindow *window, /* move out of FOCUSED_WINDOW layer */ meta_window_update_layer (window); + + /* Re-grab for click to focus */ + meta_display_grab_focus_window_button (window->display, window->xwindow); } } |