summaryrefslogtreecommitdiff
path: root/src/core/stack.c
diff options
context:
space:
mode:
authorAlberts Muktupāvels <alberts.muktupavels@gmail.com>2017-02-28 01:09:52 +0200
committerAlberts Muktupāvels <alberts.muktupavels@gmail.com>2017-02-28 03:03:41 +0200
commit0f7f1010277a267eb8591559ab76195db0217392 (patch)
tree91438a44b7b72cee890ec8b0d8bd9651087c9b81 /src/core/stack.c
parent62787260c2ecf6578360d71205460273b2deb401 (diff)
downloadmetacity-0f7f1010277a267eb8591559ab76195db0217392.tar.gz
stack: add more checks for override redirect windows
Diffstat (limited to 'src/core/stack.c')
-rw-r--r--src/core/stack.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/core/stack.c b/src/core/stack.c
index 31971ad7..f8532ed0 100644
--- a/src/core/stack.c
+++ b/src/core/stack.c
@@ -105,6 +105,8 @@ void
meta_stack_add (MetaStack *stack,
MetaWindow *window)
{
+ g_return_if_fail (!window->override_redirect);
+
meta_topic (META_DEBUG_STACK, "Adding window %s to the stack\n", window->desc);
if (window->stack_position >= 0)
@@ -347,9 +349,12 @@ get_maximum_layer_in_group (MetaWindow *window)
{
MetaWindow *w = tmp->data;
- layer = get_standalone_layer (w);
- if (layer > max)
- max = layer;
+ if (!w->override_redirect)
+ {
+ layer = get_standalone_layer (w);
+ if (layer > max)
+ max = layer;
+ }
tmp = tmp->next;
}
@@ -561,7 +566,8 @@ create_constraints (Constraint **constraints,
MetaWindow *group_window = tmp2->data;
if (!WINDOW_IN_STACK (group_window) ||
- w->screen != group_window->screen)
+ w->screen != group_window->screen ||
+ group_window->override_redirect)
{
tmp2 = tmp2->next;
continue;