[mutter] window: Don't move the desktop window after monitor hotplug



commit 7a2c0195140b1d8bcaacee89e095f19c9e8de7e1
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Thu Oct 4 14:57:49 2012 -0300

    window: Don't move the desktop window after monitor hotplug
    
    If someone plugs in a new monitor, while all their regular windows
    should move in absolute X coordinates to ensure they stay on the
    same monitor, the desktop window should stay put.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=681159

 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 4c754b6..06dba27 100644
--- a/src/core/window.c
+++ b/src/core/window.c
@@ -4454,6 +4454,9 @@ meta_window_update_for_monitors_changed (MetaWindow *window)
   const MetaMonitorInfo *old, *new;
   int i;
 
+  if (window->type == META_WINDOW_DESKTOP)
+    return;
+
   old = window->monitor;
 
   /* Start on primary */



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