From 7a2c0195140b1d8bcaacee89e095f19c9e8de7e1 Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Thu, 4 Oct 2012 14:57:49 -0300 Subject: [PATCH] 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 file changed, 3 insertions(+) diff --git a/src/core/window.c b/src/core/window.c index 4c754b6c3..06dba270e 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 */