[metacity] stack: ignore unmanaging windows
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [metacity] stack: ignore unmanaging windows
- Date: Tue, 28 Feb 2017 01:55:50 +0000 (UTC)
commit 9b192a5c5ed1f35888dd6e88648ad44b4fa2da36
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Tue Feb 28 02:47:22 2017 +0200
stack: ignore unmanaging windows
src/core/stack.c | 14 +++++++++-----
1 files changed, 9 insertions(+), 5 deletions(-)
---
diff --git a/src/core/stack.c b/src/core/stack.c
index f8532ed..d6561e1 100644
--- a/src/core/stack.c
+++ b/src/core/stack.c
@@ -1129,6 +1129,12 @@ stack_sync_to_server (MetaStack *stack)
w = tmp->data;
+ if (w->unmanaging)
+ {
+ tmp = tmp->next;
+ continue;
+ }
+
/* remember, stacked is in reverse order (bottom to top) */
g_array_prepend_val (stacked, w->xwindow);
@@ -1146,11 +1152,6 @@ stack_sync_to_server (MetaStack *stack)
meta_topic (META_DEBUG_STACK, "\n");
meta_pop_no_msg_prefix ();
- /* All windows should be in some stacking order */
- if (stacked->len != stack->windows->len)
- meta_bug ("%u windows stacked, %u windows exist in stack\n",
- stacked->len, stack->windows->len);
-
/* Sync to server */
meta_topic (META_DEBUG_STACK, "Restacking %u windows\n",
@@ -1437,6 +1438,9 @@ get_default_focus_window (MetaStack *stack,
if (window->minimized)
continue;
+ if (window->unmanaging)
+ continue;
+
if (!(window->input || window->take_focus))
continue;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]