fix splitbutton menu popout region for clicking outside panel bounds
This commit is contained in:
+8
-1
@@ -20,6 +20,7 @@ CustomWindow {
|
||||
readonly property alias bar: bar
|
||||
readonly property bool hasFullscreen: Hypr.monitorFor(screen)?.activeWorkspace?.toplevels.values.some(t => t.lastIpcObject.fullscreen === 2)
|
||||
readonly property alias interactionWrapper: interactions
|
||||
readonly property alias menuRegion: menuPopoutRegion
|
||||
property var root: Quickshell.shellDir
|
||||
|
||||
WlrLayershell.exclusionMode: ExclusionMode.Ignore
|
||||
@@ -46,12 +47,18 @@ CustomWindow {
|
||||
visibilities.resources = false;
|
||||
}
|
||||
|
||||
Region {
|
||||
id: menuPopoutRegion
|
||||
|
||||
intersection: Intersection.Subtract
|
||||
}
|
||||
|
||||
Region {
|
||||
id: region
|
||||
|
||||
height: root.height - bar.implicitHeight - Config.barConfig.border
|
||||
intersection: Intersection.Xor
|
||||
regions: popoutRegions.instances
|
||||
regions: [...popoutRegions.instances, menuPopoutRegion]
|
||||
width: root.width - Config.barConfig.border * 2
|
||||
x: Config.barConfig.border
|
||||
y: bar.implicitHeight
|
||||
|
||||
Reference in New Issue
Block a user