From 884ab602cbdd82bbc8487f50d03964c623a42488 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Fri, 8 Mar 2013 23:20:45 +0100 Subject: [PATCH] window: Force NORMAL layer for tile preview The tile preview is expected to be shown underneath the focus window. However the code that restacks the preview broke when override-redirect windows were moved to a separate window group. To fix, special-case tile previews to put them in the NORMAL layer. https://bugzilla.gnome.org/show_bug.cgi?id=696053 --- src/core/window.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/core/window.c b/src/core/window.c index d3de779b2..1224b8ee0 100644 --- a/src/core/window.c +++ b/src/core/window.c @@ -1415,6 +1415,9 @@ meta_window_new_with_attrs (MetaDisplay *display, if (!window->override_redirect) meta_stack_add (window->screen->stack, window); + else if (window->screen->tile_preview != NULL && + meta_tile_preview_get_xwindow (window->screen->tile_preview, NULL) == xwindow) + window->layer = META_LAYER_NORMAL; else window->layer = META_LAYER_OVERRIDE_REDIRECT; /* otherwise set by MetaStack */