Skip to content
Snippets Groups Projects
Commit 3d6e0472 authored by Olivier Fourdan's avatar Olivier Fourdan :tools:
Browse files

transients: Do no search for parent in lower layers


Bug: 15891

When raising a transient window we would automatically raise its parent
windows.

However, if the transient and parent are not placed on the same layer,
we might raise the parent from a lower layer.

To avoid that issue, limit the scope of search to the same or higher
layers.

Signed-off-by: default avatarOlivier Fourdan <fourdan@xfce.org>
parent 20e38b73
No related branches found
No related tags found
No related merge requests found
...@@ -347,6 +347,11 @@ clientGetTransientFor (Client * c) ...@@ -347,6 +347,11 @@ clientGetTransientFor (Client * c)
continue; continue;
} }
if (c->win_layer > c2->win_layer)
{
break;
}
if (clientIsDirectTransient (c) && clientIsTransientFor (c, c2)) if (clientIsDirectTransient (c) && clientIsTransientFor (c, c2))
{ {
parents = g_list_append (parents, c2); parents = g_list_append (parents, c2);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment