From a2b6ff6d42ea83827d4582c8d68328dba531b841 Mon Sep 17 00:00:00 2001 From: Rob Adams Date: Tue, 19 Aug 2003 20:10:45 +0000 Subject: [PATCH] put windows with wm_state_below at the bottom. Make this higher priority 2003-08-19 Rob Adams * 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. --- ChangeLog | 6 ++++++ src/stack.c | 8 +++++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 8b3de5974..151ef1de8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2003-08-19 Rob Adams + + * 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 * src/constraints.c (meta_window_constrain): recalculate frame diff --git a/src/stack.c b/src/stack.c index 7a97e80ac..cafae18ca 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;