summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Adams <robadams@uclu.edu>2003-08-19 20:10:45 +0000
committerRob Adams <readams@src.gnome.org>2003-08-19 20:10:45 +0000
commita2b6ff6d42ea83827d4582c8d68328dba531b841 (patch)
tree8cbd64141f59b4cac57ddaa598b4cabc9e889c25
parent5ea067a1d84d83ab144afbe0d17125a33396e143 (diff)
downloadmetacity-a2b6ff6d42ea83827d4582c8d68328dba531b841.tar.gz
put windows with wm_state_below at the bottom. Make this higher priority
2003-08-19 Rob Adams <robadams@uclu.edu> * src/stack.c (get_standalone_layer): put windows with wm_state_below at the bottom. Make this higher priority than full screen layer; see #120238.
-rw-r--r--ChangeLog6
-rw-r--r--src/stack.c8
2 files changed, 11 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 8b3de597..151ef1de 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2003-08-19 Rob Adams <robadams@uclu.edu>
+
+ * src/stack.c (get_standalone_layer): put windows with
+ wm_state_below at the bottom. Make this higher priority than full
+ screen layer; see #120238.
+
2003-08-18 Rob Adams <robadams@ucla.edu>
* src/constraints.c (meta_window_constrain): recalculate frame
diff --git a/src/stack.c b/src/stack.c
index 7a97e80a..cafae18c 100644
--- a/src/stack.c
+++ b/src/stack.c
@@ -264,9 +264,11 @@ get_standalone_layer (MetaWindow *window)
is_focused_foreach,
&focused_transient);
- if ((window->has_focus || focused_transient ||
- (window == window->display->expected_focus_window)) &&
- (window->fullscreen || window_is_fullscreen_size (window)))
+ if (window->wm_state_below)
+ layer = META_LAYER_BOTTOM;
+ else if ((window->has_focus || focused_transient ||
+ (window == window->display->expected_focus_window)) &&
+ (window->fullscreen || window_is_fullscreen_size (window)))
layer = META_LAYER_FULLSCREEN;
else if (window->wm_state_above)
layer = META_LAYER_DOCK;