summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorATMDA <atdma2600@gmail.com>2025-11-16 09:29:52 -0500
committerATMDA <atdma2600@gmail.com>2025-11-16 09:29:52 -0500
commitd3124c34ace89443558b629c2178969001038d7d (patch)
tree9174b870294fac104ecd860b0aaaa38081e4be63
parentcontrolcenter: wallpaper selector now spacing scale aware (diff)
downloadcaelestia-shell-d3124c34ace89443558b629c2178969001038d7d.tar.gz
caelestia-shell-d3124c34ace89443558b629c2178969001038d7d.tar.bz2
caelestia-shell-d3124c34ace89443558b629c2178969001038d7d.zip
controlcenter: slider input focus on pane change or click outside of text area
-rw-r--r--modules/controlcenter/Panes.qml21
1 files changed, 21 insertions, 0 deletions
diff --git a/modules/controlcenter/Panes.qml b/modules/controlcenter/Panes.qml
index 77b2fd2..5238624 100644
--- a/modules/controlcenter/Panes.qml
+++ b/modules/controlcenter/Panes.qml
@@ -20,6 +20,27 @@ ClippingRectangle {
color: "transparent"
clip: true
+ focus: false
+ activeFocusOnTab: false
+
+ // Clear focus when clicking anywhere in the panes area
+ MouseArea {
+ anchors.fill: parent
+ z: -1
+ onPressed: function(mouse) {
+ root.focus = true;
+ mouse.accepted = false;
+ }
+ }
+
+ // Clear focus when switching panes
+ Connections {
+ target: root.session
+
+ function onActiveIndexChanged(): void {
+ root.focus = true;
+ }
+ }
ColumnLayout {
id: layout