From f37245ace23e676eaeaecb9b81c9f6582adee2b8 Mon Sep 17 00:00:00 2001 From: Havoc Pennington Date: Sat, 28 Sep 2002 16:54:33 +0000 Subject: [PATCH] re-enable the FOCUSED_WINDOW layer, should now work correctly. 2002-09-28 Havoc Pennington * src/stack.c (get_standalone_layer): re-enable the FOCUSED_WINDOW layer, should now work correctly. --- ChangeLog | 5 +++++ src/stack.c | 10 ++-------- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/ChangeLog b/ChangeLog index e2425b847..fd57bcd89 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2002-09-28 Havoc Pennington + + * src/stack.c (get_standalone_layer): re-enable the FOCUSED_WINDOW + layer, should now work correctly. + 2002-09-28 Havoc Pennington * src/window.c, src/stack.c: Rewrite stack code to work a lot diff --git a/src/stack.c b/src/stack.c index 0e5019d86..727d80bae 100644 --- a/src/stack.c +++ b/src/stack.c @@ -199,17 +199,11 @@ get_standalone_layer (MetaWindow *window) break; default: -#if 0 - /* FIXME this is disabled due to the FIXME below - * about how moving multiple windows between layers randomly - * rearranges their Z-order - */ if (window->has_focus && meta_prefs_get_focus_mode () == META_FOCUS_MODE_CLICK) layer = META_LAYER_FOCUSED_WINDOW; -#endif - if (window->fullscreen) + else if (window->fullscreen) layer = META_LAYER_FULLSCREEN; else layer = META_LAYER_NORMAL; @@ -747,7 +741,7 @@ meta_stack_sync_to_server (MetaStack *stack) else g_array_append_val (root_children_stacked, w->xwindow); - meta_topic (META_DEBUG_STACK, "%d) %s ", w->stack_position, w->desc); + meta_topic (META_DEBUG_STACK, "%d:%d - %s ", w->layer, w->stack_position, w->desc); tmp = tmp->next; }