summaryrefslogtreecommitdiff
path: root/src/window.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/window.c')
-rw-r--r--src/window.c3
1 files changed, 2 insertions, 1 deletions
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 */