Blame SOURCES/0003-window-Properly-update-window-monitor-for-the-deskto.patch

2c033f
From 54771511fe477eafbb4c28e8c7ddc2455cfc7283 Mon Sep 17 00:00:00 2001
2c033f
From: Rui Matos <tiagomatos@gmail.com>
2c033f
Date: Sat, 24 Oct 2015 18:46:12 +0200
2c033f
Subject: [PATCH 3/4] window: Properly update window->monitor for the desktop
2c033f
 window
2c033f
2c033f
We don't want to move the desktop window but we still need to update
2c033f
window->monitor or otherwise we'll be left with a pointer to invalid
2c033f
memory.
2c033f
---
2c033f
 src/core/window.c | 5 +----
2c033f
 1 file changed, 1 insertion(+), 4 deletions(-)
2c033f
2c033f
diff --git a/src/core/window.c b/src/core/window.c
2c033f
index f9fae9e..faa0296 100644
2c033f
--- a/src/core/window.c
2c033f
+++ b/src/core/window.c
2c033f
@@ -3513,12 +3513,9 @@ meta_window_update_for_monitors_changed (MetaWindow *window)
2c033f
 {
2c033f
   const MetaMonitorInfo *old, *new;
2c033f
 
2c033f
-  if (window->type == META_WINDOW_DESKTOP)
2c033f
-    return;
2c033f
-
2c033f
   old = window->monitor;
2c033f
 
2c033f
-  if (!old || window->screen->n_monitor_infos == 0 || window->override_redirect)
2c033f
+  if (!old || window->screen->n_monitor_infos == 0 || window->override_redirect || window->type == META_WINDOW_DESKTOP)
2c033f
     {
2c033f
       meta_window_update_monitor (window, FALSE);
2c033f
       return;
2c033f
-- 
2c033f
2.5.0
2c033f