summaryrefslogtreecommitdiff
path: root/src/keybindings.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/keybindings.c')
-rw-r--r--src/keybindings.c21
1 files changed, 12 insertions, 9 deletions
diff --git a/src/keybindings.c b/src/keybindings.c
index badc1520..6b08296e 100644
--- a/src/keybindings.c
+++ b/src/keybindings.c
@@ -2711,15 +2711,18 @@ handle_raise_or_lower (MetaDisplay *display,
{
MetaRectangle tmp, win_rect, above_rect;
- meta_window_get_outer_rect (window, &win_rect);
- meta_window_get_outer_rect (above, &above_rect);
-
- /* Check if obscured */
- if (meta_rectangle_intersect (&win_rect, &above_rect, &tmp))
- {
- meta_window_raise (window);
- return;
- }
+ if (above->mapped)
+ {
+ meta_window_get_outer_rect (window, &win_rect);
+ meta_window_get_outer_rect (above, &above_rect);
+
+ /* Check if obscured */
+ if (meta_rectangle_intersect (&win_rect, &above_rect, &tmp))
+ {
+ meta_window_raise (window);
+ return;
+ }
+ }
above = meta_stack_get_above (window->screen->stack, above, TRUE);
}