summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJose Marino <braket@hotmail.com>2017-02-06 09:17:02 -0700
committerRui Matos <tiagomatos@gmail.com>2017-02-07 14:44:51 +0100
commit58669e75988ea329b40b01530e5a589a62e5380a (patch)
tree9decb2d8ee97737be33c075cc600b7c066a0028d
parent998aa532d0cc7373ac8b118c1fc6f88dc40e2416 (diff)
downloadmutter-58669e75988ea329b40b01530e5a589a62e5380a.tar.gz
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
-rw-r--r--src/core/keybindings.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/keybindings.c b/src/core/keybindings.c
index 14d134fb4..f3630d471 100644
--- a/src/core/keybindings.c
+++ b/src/core/keybindings.c
@@ -3205,7 +3205,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);