From 2926f0a501211f7f5fb225fea6f20d0a00e55714 Mon Sep 17 00:00:00 2001 From: Havoc Pennington Date: Sat, 28 Sep 2002 04:00:24 +0000 Subject: [PATCH] Temporarily disable use of the FOCUSED_WINDOW layer, because given the 2002-09-27 Havoc Pennington * src/stack.c (get_standalone_layer): Temporarily disable use of the FOCUSED_WINDOW layer, because given the fact that moving multiple windows into the same layer changes the Z-order of those windows, it was breaking click-to-focus. --- ChangeLog | 7 +++++++ src/stack.c | 9 ++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index f6b1af735..29ea5f580 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2002-09-27 Havoc Pennington + + * src/stack.c (get_standalone_layer): Temporarily disable use of + the FOCUSED_WINDOW layer, because given the fact that moving + multiple windows into the same layer changes the Z-order of those + windows, it was breaking click-to-focus. + 2002-09-27 Havoc Pennington * src/screen.c (meta_screen_focus_top_window): raise the focused diff --git a/src/stack.c b/src/stack.c index fbdbe3377..4ce4215e6 100644 --- a/src/stack.c +++ b/src/stack.c @@ -280,10 +280,17 @@ 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; - else if (window->fullscreen) +#endif + if (window->fullscreen) layer = META_LAYER_FULLSCREEN; else layer = META_LAYER_NORMAL;