Blame SOURCES/0001-screen-Remove-stray-assert.patch

67f8b7
From fd41db64169f6e0b36d56e054967cb406e32fa74 Mon Sep 17 00:00:00 2001
67f8b7
From: =?UTF-8?q?Florian=20M=C3=BCllner?= <fmuellner@gnome.org>
67f8b7
Date: Mon, 26 Jun 2017 17:56:36 +0200
67f8b7
Subject: [PATCH] screen: Remove stray assert
67f8b7
67f8b7
When the number of (static) workspaces decreases, we relocate windows
67f8b7
from extra workspaces before removing them. As removing a non-empty
67f8b7
workspace is not allowed, we assert that it doesn't contain any windows
67f8b7
before removing it.
67f8b7
67f8b7
However that assert is
67f8b7
67f8b7
 - pointless, because meta_workspace_remove() already asserts that
67f8b7
   the workspace is empty
67f8b7
67f8b7
 - wrong, because even empty workspaces contain windows that are set
67f8b7
   to show on all workspaces
67f8b7
67f8b7
Simply drop the assert to avoid a crash when trying to remove a workspace
67f8b7
while on-all-workspaces windows are present.
67f8b7
67f8b7
https://bugzilla.gnome.org/show_bug.cgi?id=784223
67f8b7
---
67f8b7
 src/core/screen.c | 1 -
67f8b7
 1 file changed, 1 deletion(-)
67f8b7
67f8b7
diff --git a/src/core/screen.c b/src/core/screen.c
67f8b7
index d6b5eac53..c6aa9e194 100644
67f8b7
--- a/src/core/screen.c
67f8b7
+++ b/src/core/screen.c
67f8b7
@@ -1260,7 +1260,6 @@ update_num_workspaces (MetaScreen *screen,
67f8b7
     {
67f8b7
       MetaWorkspace *w = l->data;
67f8b7
 
67f8b7
-      g_assert (w->windows == NULL);
67f8b7
       meta_workspace_remove (w);
67f8b7
     }
67f8b7
 
67f8b7
-- 
67f8b7
2.13.0
67f8b7