[mutter] window-x11: The x11 backend window is our window as well



commit 38253a9f73a26611acfbe5d4236479d75d6051e4
Author: Adel Gadllah <adel gadllah gmail com>
Date:   Fri Aug 15 16:52:44 2014 +0200

    window-x11: The x11 backend window is our window as well
    
    Since commit 467465c99c41 we use meta_stage even on x11 which sets
    clutter_stage_set_user_resizable to FALSE.
    
    This messes things up because we ought to ignore the properties on the window
    but we apperently didn't.
    
    There is no reason why we'd want to manage the stage window.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=734852

 src/x11/window-x11.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/src/x11/window-x11.c b/src/x11/window-x11.c
index af99b03..ebb6ec2 100644
--- a/src/x11/window-x11.c
+++ b/src/x11/window-x11.c
@@ -48,6 +48,8 @@
 #include "session.h"
 #include "workspace-private.h"
 
+#include "backends/x11/meta-backend-x11.h"
+
 struct _MetaWindowX11Class
 {
   MetaWindowClass parent_class;
@@ -2800,6 +2802,12 @@ is_our_xwindow (MetaDisplay       *display,
   if (xwindow == screen->composite_overlay_window)
     return TRUE;
 
+  {
+    MetaBackendX11 *backend = META_BACKEND_X11 (meta_get_backend ());
+    if (xwindow == meta_backend_x11_get_xwindow (backend))
+      return TRUE;
+  }
+
   /* Any windows created via meta_create_offscreen_window */
   if (attrs->override_redirect && attrs->x == -100 && attrs->y == -100 && attrs->width == 1 && attrs->height 
== 1)
     return TRUE;


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