From 9a123847e0e3be6197b8beea95370085954f5015 Mon Sep 17 00:00:00 2001 From: Jose Marino Date: Mon, 6 Feb 2017 09:17:02 -0700 Subject: [PATCH] keybindings: fix erratic raise_or_lower behavior Function "handle_raise_or_lower (src/core/keybindings.c)" is called when running 'raise-or-lower' on a window. This function iterates through all the windows in the stack to determine if our window is already on top or obscured. The problem is that the window stack includes windows in another workspaces and also windows that are minimized. https://bugzilla.gnome.org/show_bug.cgi?id=705200 --- src/core/keybindings.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/keybindings.c b/src/core/keybindings.c index b7853e238..19b48ee98 100644 --- a/src/core/keybindings.c +++ b/src/core/keybindings.c @@ -3198,7 +3198,7 @@ handle_raise_or_lower (MetaDisplay *display, { MetaRectangle tmp, win_rect, above_rect; - if (above->mapped) + if (above->mapped && meta_window_should_be_showing (above)) { meta_window_get_frame_rect (window, &win_rect); meta_window_get_frame_rect (above, &above_rect);