summaryrefslogtreecommitdiff
path: root/modules/drawers/Interactions.qml
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-06-02 16:31:26 +0800
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-06-02 16:31:26 +0800
commit24a3da813862623b3eec05ef5050ba715e08c684 (patch)
tree1674c1be77e48befe6e877b421f799deca6c4475 /modules/drawers/Interactions.qml
parentosd: fix text not updating during transition (diff)
downloadcaelestia-shell-24a3da813862623b3eec05ef5050ba715e08c684.tar.gz
caelestia-shell-24a3da813862623b3eec05ef5050ba715e08c684.tar.bz2
caelestia-shell-24a3da813862623b3eec05ef5050ba715e08c684.zip
feat: bar popouts
Create active window popout
Diffstat (limited to 'modules/drawers/Interactions.qml')
-rw-r--r--modules/drawers/Interactions.qml13
1 files changed, 13 insertions, 0 deletions
diff --git a/modules/drawers/Interactions.qml b/modules/drawers/Interactions.qml
index cd09140..03c4e5e 100644
--- a/modules/drawers/Interactions.qml
+++ b/modules/drawers/Interactions.qml
@@ -37,6 +37,7 @@ MouseArea {
visibilities.osd = false;
osdHovered = false;
visibilities.dashboard = false;
+ Popouts.hasCurrent = false;
}
}
@@ -58,6 +59,18 @@ MouseArea {
// Show dashboard on hover
const showDashboard = root.inTopPanel(panels.dashboard, x, y);
visibilities.dashboard = showDashboard;
+
+ // Show popouts on hover
+ const popout = panels.popouts;
+ if (x < BorderConfig.thickness + popout.width) {
+ if (x < BorderConfig.thickness)
+ // Handle like part of bar
+ Visibilities.bars[screen].checkPopout(y);
+ else
+ // Keep on hover
+ Popouts.hasCurrent = withinPanelHeight(popout, x, y);
+ } else
+ Popouts.hasCurrent = false;
}
Osd.Interactions {