forked from Shinonome/dots-hyprland
notif popup: show only on focused screen
This commit is contained in:
@@ -7,25 +7,21 @@ import QtQuick.Controls
|
||||
import QtQuick.Layouts
|
||||
import Quickshell
|
||||
import Quickshell.Wayland
|
||||
import Quickshell.Hyprland
|
||||
|
||||
Scope {
|
||||
id: screenCorners
|
||||
readonly property Toplevel activeWindow: ToplevelManager.activeToplevel
|
||||
|
||||
Variants {
|
||||
model: Quickshell.screens
|
||||
id: notificationPopup
|
||||
|
||||
LazyLoader {
|
||||
property var modelData
|
||||
loading: true
|
||||
PanelWindow {
|
||||
id: root
|
||||
visible: (columnLayout.children.length > 0 || notificationWidgetList.length > 0)
|
||||
screen: Quickshell.screens.find(s => s.name === Hyprland.focusedMonitor?.name)
|
||||
|
||||
property Component notifComponent: NotificationWidget {}
|
||||
property list<NotificationWidget> notificationWidgetList: []
|
||||
|
||||
screen: modelData
|
||||
WlrLayershell.namespace: "quickshell:notificationPopup"
|
||||
WlrLayershell.layer: WlrLayer.Overlay
|
||||
exclusiveZone: 0
|
||||
@@ -113,5 +109,3 @@ Scope {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user