Only promote windows to upper layers if one of the group members is in fullscreen mode

We want panels to be behind fullscreen windows, but osd windows above
them. With the current layer promotion logic, the panel will be promoted
to the osd layer, which is undesirable. This change restores the old
behavior by allowing layer promotion only to ActiveLayer.

BUG: 436985
This commit is contained in:
Vlad Zahorodnii 2021-05-12 19:39:12 +03:00
parent d031381f19
commit e187e766b0

View file

@ -490,8 +490,8 @@ static Layer layerForClient(const X11Client *client)
} else if (member->screen() != client->screen()) {
continue;
}
if (member->layer() > layer) {
layer = member->layer();
if (member->layer() == ActiveLayer) {
return ActiveLayer;
}
}
}