[metacity] keybindings: fix erratic raise_or_lower behavior
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [metacity] keybindings: fix erratic raise_or_lower behavior
- Date: Fri, 24 Feb 2017 18:10:56 +0000 (UTC)
commit 89d84a2bb85f60f49944a7c4973c3dbef9d653ce
Author: Jose Marino <braket hotmail com>
Date: Mon Feb 6 09:17:02 2017 -0700
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 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/core/keybindings.c b/src/core/keybindings.c
index acfbf6f..26788eb 100644
--- a/src/core/keybindings.c
+++ b/src/core/keybindings.c
@@ -3261,7 +3261,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_outer_rect (window, &win_rect);
meta_window_get_outer_rect (above, &above_rect);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]