diff options
author | Havoc Pennington <hp@pobox.com> | 2003-06-07 05:07:08 +0000 |
---|---|---|
committer | Havoc Pennington <hp@src.gnome.org> | 2003-06-07 05:07:08 +0000 |
commit | e0963e6b66703c01260c7d7c6ab6a15d142b8f2e (patch) | |
tree | 3a326c0dae674caf9beb306b1b870b50f16b13eb | |
parent | 6262db51a2a5c448758429a12cf63428ddb5f8ba (diff) | |
download | metacity-e0963e6b66703c01260c7d7c6ab6a15d142b8f2e.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 + Fri Jun 6 19:27:53 2003 Jonathan Blandford <jrb@gnome.org> * src/metacity.schemas.in: fix the location of the schemas file. diff --git a/src/window.c b/src/window.c index 2386c02c..06fd90f0 100644 --- a/src/window.c +++ b/src/window.c @@ -4030,6 +4030,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 || @@ -4066,6 +4069,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); } } |