mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-10-21 18:54:01 -04:00
fix(notifications): keep popup above frame chrome (#3099)
This commit is contained in:
@@ -191,7 +191,7 @@ PanelWindow {
|
||||
|
||||
visible: !_finalized
|
||||
WlrLayershell.layer: {
|
||||
const shouldUseOverlay = notificationData && (SettingsData.notificationOverlayEnabled || notificationData.urgency === NotificationUrgency.Critical);
|
||||
const shouldUseOverlay = CompositorService.framePeerSurfacesUseOverlayForScreen(win.screen) || (notificationData && (SettingsData.notificationOverlayEnabled || notificationData.urgency === NotificationUrgency.Critical));
|
||||
const fallback = shouldUseOverlay ? WlrLayer.Overlay : WlrLayer.Top;
|
||||
return LayerShell.fromEnv("DMS_NOTIFICATION_LAYER", fallback);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user