qs: use Hyprland.visibleMask in notifs and tooltip
This commit is contained in:
parent
bfe0689d2e
commit
324d1aad9d
4 changed files with 22 additions and 2 deletions
|
|
@ -5,6 +5,8 @@ import "../components"
|
|||
Item {
|
||||
id: root
|
||||
|
||||
readonly property Region mask: Region { item: displayContainer }
|
||||
|
||||
enum FlingState {
|
||||
Inert,
|
||||
Returning,
|
||||
|
|
|
|||
|
|
@ -1,11 +1,13 @@
|
|||
import QtQuick
|
||||
import Quickshell
|
||||
import Quickshell.Wayland
|
||||
import Quickshell.Hyprland
|
||||
|
||||
PanelWindow {
|
||||
WlrLayershell.namespace: "shell:notifications"
|
||||
exclusionMode: ExclusionMode.Ignore
|
||||
color: "transparent"
|
||||
//color: "#30606000"
|
||||
|
||||
anchors {
|
||||
left: true
|
||||
|
|
@ -28,6 +30,9 @@ PanelWindow {
|
|||
visible: display.stack.children.length != 0
|
||||
|
||||
mask: Region { item: display.stack }
|
||||
HyprlandWindow.visibleMask: Region {
|
||||
regions: display.stack.children.map(child => child.mask)
|
||||
}
|
||||
|
||||
Component.onCompleted: {
|
||||
NotificationManager.overlay = this;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue