[mutter] window: Force NORMAL layer for tile preview



commit 884ab602cbdd82bbc8487f50d03964c623a42488
Author: Florian Müllner <fmuellner gnome org>
Date:   Fri Mar 8 23:20:45 2013 +0100

    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 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/core/window.c b/src/core/window.c
index d3de779..1224b8e 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 */
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]