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

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