From ee06338640157192d32f9c718c59c9b667234ca8 Mon Sep 17 00:00:00 2001 From: purian23 Date: Mon, 8 Sep 2025 21:43:00 -0400 Subject: [PATCH] Notepad top layer & remove background click to close --- Modules/NotepadSlideout.qml | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/Modules/NotepadSlideout.qml b/Modules/NotepadSlideout.qml index b46d51c9..1e7fb0ed 100644 --- a/Modules/NotepadSlideout.qml +++ b/Modules/NotepadSlideout.qml @@ -64,22 +64,9 @@ PanelWindow { color: "transparent" - WlrLayershell.layer: WlrLayershell.Overlay + WlrLayershell.layer: WlrLayershell.Top WlrLayershell.exclusiveZone: 0 WlrLayershell.keyboardFocus: isVisible ? WlrKeyboardFocus.OnDemand : WlrKeyboardFocus.None - - - // Background click to close - MouseArea { - anchors.fill: parent - enabled: isVisible - onClicked: mouse => { - var localPos = mapToItem(contentRect, mouse.x, mouse.y) - if (localPos.x < 0 || localPos.x > contentRect.width || localPos.y < 0 || localPos.y > contentRect.height) { - hide() - } - } - } StyledRect { id: contentRect