fix notif popup masks

This commit is contained in:
Zacharias-Brohn
2025-11-18 10:11:22 +01:00
parent bc24ef07d7
commit 77800d1779
2 changed files with 5 additions and 2 deletions
-2
View File
@@ -92,8 +92,6 @@ Item {
Loader { Loader {
id: popoutLoader id: popoutLoader
z: 0
anchors.left: parent.left
sourceComponent: null sourceComponent: null
} }
+5
View File
@@ -19,6 +19,7 @@ PanelWindow {
left: true left: true
bottom: true bottom: true
} }
mask: Region { regions: root.notifRegions } mask: Region { regions: root.notifRegions }
exclusionMode: ExclusionMode.Ignore exclusionMode: ExclusionMode.Ignore
WlrLayershell.layer: WlrLayer.Overlay WlrLayershell.layer: WlrLayer.Overlay
@@ -35,6 +36,10 @@ PanelWindow {
id: notifListView id: notifListView
model: ScriptModel { model: ScriptModel {
values: NotifServer.list.filter( n => n.popup ) values: NotifServer.list.filter( n => n.popup )
onValuesChanged: {
if ( values.length === 0 )
root.notifRegions = [];
}
} }
anchors.top: parent.top anchors.top: parent.top
anchors.bottom: parent.bottom anchors.bottom: parent.bottom