Map picker on a reliable fullscreen layer surface
This commit is contained in:
+13
-5
@@ -488,22 +488,30 @@ Item {
|
|||||||
|
|
||||||
// ------------------------------------------------------------ window
|
// ------------------------------------------------------------ window
|
||||||
|
|
||||||
// Floating card: an unanchored layer surface is centered by the compositor,
|
// Use the same proven fullscreen layer surface as Omarchy's built-in
|
||||||
// so the picker is just the card — no fullscreen scrim underneath.
|
// clipboard. The surface is transparent; only the centered card is drawn.
|
||||||
|
// An unanchored, fixed-size PanelWindow can silently fail to map after a
|
||||||
|
// plugin hot reload on current Quickshell/Hyprland versions.
|
||||||
PanelWindow {
|
PanelWindow {
|
||||||
id: panel
|
id: panel
|
||||||
visible: root.opened
|
visible: root.opened
|
||||||
implicitWidth: root.cardWidth
|
anchors { top: true; bottom: true; left: true; right: true }
|
||||||
implicitHeight: root.cardHeight
|
|
||||||
color: "transparent"
|
color: "transparent"
|
||||||
WlrLayershell.namespace: "alanfortlink-clipboard"
|
WlrLayershell.namespace: "alanfortlink-clipboard"
|
||||||
WlrLayershell.layer: WlrLayer.Overlay
|
WlrLayershell.layer: WlrLayer.Overlay
|
||||||
WlrLayershell.keyboardFocus: WlrKeyboardFocus.Exclusive
|
WlrLayershell.keyboardFocus: WlrKeyboardFocus.Exclusive
|
||||||
exclusionMode: ExclusionMode.Ignore
|
exclusionMode: ExclusionMode.Ignore
|
||||||
|
|
||||||
|
MouseArea {
|
||||||
|
anchors.fill: parent
|
||||||
|
onClicked: root.close()
|
||||||
|
}
|
||||||
|
|
||||||
BorderSurface {
|
BorderSurface {
|
||||||
id: card
|
id: card
|
||||||
anchors.fill: parent
|
width: root.cardWidth
|
||||||
|
height: root.cardHeight
|
||||||
|
anchors.centerIn: parent
|
||||||
radius: root.cornerRadius
|
radius: root.cornerRadius
|
||||||
color: root.background
|
color: root.background
|
||||||
borderSpec: root.borderSpec
|
borderSpec: root.borderSpec
|
||||||
|
|||||||
Reference in New Issue
Block a user