summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHavoc Pennington <hp@pobox.com>2001-12-11 03:06:55 +0000
committerHavoc Pennington <hp@src.gnome.org>2001-12-11 03:06:55 +0000
commitac7524508bd0a4d9779eaaeeba57aad910aaabed (patch)
treef51400a34d1b07d01999c241508a6935944be2c3
parent4af0425d72423ce20480bd9111213631b385b0ba (diff)
downloadmetacity-ac7524508bd0a4d9779eaaeeba57aad910aaabed.tar.gz
metacity-ac7524508bd0a4d9779eaaeeba57aad910aaabed.tar.bz2
oops, unbreak this _again_ - reported by Josh Barrow
2001-12-10 Havoc Pennington <hp@pobox.com> * src/window.c (meta_window_update_unfocused_button_grabs): oops, unbreak this _again_ - reported by Josh Barrow
-rw-r--r--ChangeLog5
-rw-r--r--src/window.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index a3e229b..ad23449 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2001-12-10 Havoc Pennington <hp@pobox.com>
+ * src/window.c (meta_window_update_unfocused_button_grabs): oops,
+ unbreak this _again_ - reported by Josh Barrow
+
+2001-12-10 Havoc Pennington <hp@pobox.com>
+
* src/window.c (meta_window_update_unfocused_button_grabs): don't
allow grab on docks/desktop for now; needs fixing later to
do the grab, but pass thru click, so we can focus those windows.
diff --git a/src/window.c b/src/window.c
index ecbf119..a487a69 100644
--- a/src/window.c
+++ b/src/window.c
@@ -2050,7 +2050,8 @@ meta_window_update_unfocused_button_grabs (MetaWindow *window)
* do is focus these windows, but pass thru click. What we
* do now is ignore clicks on them.
*/
- if (window->type != META_WINDOW_DOCK &&
+ if (!window->has_focus &&
+ window->type != META_WINDOW_DOCK &&
window->type != META_WINDOW_DESKTOP)
{
/* Not focused so grab */