[mutter] stack: Don't try to focus hidden windows



commit 6c05eb583e10293b9979cd254a77cf9ea02473b1
Author: Florian Müllner <fmuellner gnome org>
Date:   Mon Jun 29 20:23:42 2015 +0200

    stack: Don't try to focus hidden windows
    
    A window may be hidden even if not minimized itself, for instance
    when an ancestor is minimized. As meta_window_focus() will refuse
    to actually focus the window in that case, don't pick it in the first
    place.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=751715

 src/core/stack.c |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/src/core/stack.c b/src/core/stack.c
index 09f2821..0d2b4f7 100644
--- a/src/core/stack.c
+++ b/src/core/stack.c
@@ -1273,16 +1273,13 @@ get_default_focus_window (MetaStack     *stack,
       if (window->unmaps_pending > 0)
         continue;
 
-      if (window->minimized)
-        continue;
-
       if (window->unmanaging)
         continue;
 
       if (!(window->input || window->take_focus))
         continue;
 
-      if (workspace != NULL && !meta_window_located_on_workspace (window, workspace))
+      if (!meta_window_should_be_showing (window))
         continue;
 
       if (must_be_at_point && !window_contains_point (window, root_x, root_y))


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]