Temporarily disable use of the FOCUSED_WINDOW layer, because given the

2002-09-27  Havoc Pennington  <hp@pobox.com>

	* 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.
This commit is contained in:
Havoc Pennington 2002-09-28 04:00:24 +00:00 committed by Havoc Pennington
parent 6c325e9070
commit 2926f0a501
2 changed files with 15 additions and 1 deletions

View File

@ -1,3 +1,10 @@
2002-09-27 Havoc Pennington <hp@pobox.com>
* 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 <hp@pobox.com>
* src/screen.c (meta_screen_focus_top_window): raise the focused

View File

@ -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;