[mutter] window: Always set workspace state while constructing
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] window: Always set workspace state while constructing
- Date: Thu, 25 Sep 2014 14:16:56 +0000 (UTC)
commit 1e1ca47ec137235d55ebe48352941e9f74c80f6c
Author: Florian Müllner <fmuellner gnome org>
Date: Thu Sep 25 13:59:25 2014 +0100
window: Always set workspace state while constructing
set_workspace_state () returns early when the desired sticky state
and workspace match the current property values, assuming that the
corresponding MRU lists are already correct in that case.
However that might not be the case when we are setting the initial
state, so don't take the shortcut in that case.
https://bugzilla.gnome.org/show_bug.cgi?id=737178
src/core/window.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/core/window.c b/src/core/window.c
index faf0aa9..f46ca08 100644
--- a/src/core/window.c
+++ b/src/core/window.c
@@ -4311,7 +4311,8 @@ set_workspace_state (MetaWindow *window,
g_return_if_fail ((window->constructing && on_all_workspaces) || window->unmanaging);
if (on_all_workspaces == window->on_all_workspaces &&
- workspace == window->workspace)
+ workspace == window->workspace &&
+ !window->constructing)
return;
if (window->workspace)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]