Blame SOURCES/0001-stack-Don-t-try-to-focus-hidden-windows.patch
|
|
2c033f |
From 06cd7aae14cb966875d22173e653e1bb8abac747 Mon Sep 17 00:00:00 2001
|
|
|
2c033f |
From: =?UTF-8?q?Florian=20M=C3=BCllner?= <fmuellner@gnome.org>
|
|
|
2c033f |
Date: Mon, 29 Jun 2015 20:23:42 +0200
|
|
|
2c033f |
Subject: [PATCH] stack: Don't try to focus hidden windows
|
|
|
2c033f |
|
|
|
2c033f |
A window may be hidden even if not minimized itself, for instance
|
|
|
2c033f |
when an ancestor is minimized. As meta_window_focus() will refuse
|
|
|
2c033f |
to actually focus the window in that case, don't pick it in the first
|
|
|
2c033f |
place.
|
|
|
2c033f |
|
|
|
2c033f |
https://bugzilla.gnome.org/show_bug.cgi?id=751715
|
|
|
2c033f |
---
|
|
|
2c033f |
src/core/stack.c | 5 +----
|
|
|
2c033f |
1 file changed, 1 insertion(+), 4 deletions(-)
|
|
|
2c033f |
|
|
|
2c033f |
diff --git a/src/core/stack.c b/src/core/stack.c
|
|
|
2c033f |
index 037e878..f618ef2 100644
|
|
|
2c033f |
--- a/src/core/stack.c
|
|
|
2c033f |
+++ b/src/core/stack.c
|
|
|
2c033f |
@@ -1272,16 +1272,13 @@ get_default_focus_window (MetaStack *stack,
|
|
|
2c033f |
if (window->unmaps_pending > 0)
|
|
|
2c033f |
continue;
|
|
|
2c033f |
|
|
|
2c033f |
- if (window->minimized)
|
|
|
2c033f |
- continue;
|
|
|
2c033f |
-
|
|
|
2c033f |
if (window->unmanaging)
|
|
|
2c033f |
continue;
|
|
|
2c033f |
|
|
|
2c033f |
if (!(window->input || window->take_focus))
|
|
|
2c033f |
continue;
|
|
|
2c033f |
|
|
|
2c033f |
- if (workspace != NULL && !meta_window_located_on_workspace (window, workspace))
|
|
|
2c033f |
+ if (!meta_window_should_be_showing (window))
|
|
|
2c033f |
continue;
|
|
|
2c033f |
|
|
|
2c033f |
if (must_be_at_point && !window_contains_point (window, root_x, root_y))
|
|
|
2c033f |
--
|
|
|
2c033f |
2.4.3
|
|
|
2c033f |
|