fix wrong popups Z-order after applying "Show Desktop" effect

For some reason, layers are change after applying Show Desktop effect, so
we will have AboveLayer for our popups and Desktop, and NotificationLayer
for Dock which hides us.
Also, OSD and critical notifications were always hidden by our popups.

This patch solves both the issues.
Usual notifications will still be hidden, but hopefully it's not a big
issue.

BUG: 442605
This commit is contained in:
Andrey Butirsky 2021-09-17 15:03:24 +03:00
parent 67b94586c4
commit f453cb83e2
2 changed files with 3 additions and 2 deletions

View file

@ -293,6 +293,8 @@ Layer AbstractClient::belongsToLayer() const
return NotificationLayer;
return layerForDock();
}
if (isPopupWindow())
return PopupLayer;
if (isOnScreenDisplay())
return OnScreenDisplayLayer;
if (isNotification())
@ -308,8 +310,6 @@ Layer AbstractClient::belongsToLayer() const
return ActiveLayer;
if (keepAbove())
return AboveLayer;
if (isPopupWindow())
return UnmanagedLayer;
return NormalLayer;
}

View file

@ -44,6 +44,7 @@ enum Layer {
AboveLayer,
NotificationLayer, // layer for windows of type notification
ActiveLayer, // active fullscreen, or active dialog
PopupLayer, // tooltips, sub- and context menus
CriticalNotificationLayer, // layer for notifications that should be shown even on top of fullscreen
OnScreenDisplayLayer, // layer for On Screen Display windows such as volume feedback
UnmanagedLayer, // layer for override redirect windows.