summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHavoc Pennington <hp@pobox.com>2003-06-07 05:06:48 +0000
committerHavoc Pennington <hp@src.gnome.org>2003-06-07 05:06:48 +0000
commit6e7191e97cb974fc553d7762c0a777874bb05366 (patch)
treef81f5eb76fe49060a37109d438d8c21efd0175dc
parentee6e23c918a7f8137a1af973681ee954ecdb1f06 (diff)
downloadmetacity-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--ChangeLog6
-rw-r--r--src/window.c6
2 files changed, 12 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index a39284b2..8e81a549 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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);
}
}