summaryrefslogtreecommitdiff
path: root/modules/drawers
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-09-17 19:46:42 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-09-17 19:46:42 +1000
commitc48f411bcbc34afca9cdef713ef020767bd08430 (patch)
treeaccc4ea1dda5e4e6f634f5fe215e842940b1fe87 /modules/drawers
parentnotifs: fix dnd (diff)
downloadcaelestia-shell-c48f411bcbc34afca9cdef713ef020767bd08430.tar.gz
caelestia-shell-c48f411bcbc34afca9cdef713ef020767bd08430.tar.bz2
caelestia-shell-c48f411bcbc34afca9cdef713ef020767bd08430.zip
osd: fix anim when appear on change
Diffstat (limited to 'modules/drawers')
-rw-r--r--modules/drawers/Interactions.qml17
1 files changed, 4 insertions, 13 deletions
diff --git a/modules/drawers/Interactions.qml b/modules/drawers/Interactions.qml
index 4eb46a5..99aa267 100644
--- a/modules/drawers/Interactions.qml
+++ b/modules/drawers/Interactions.qml
@@ -1,8 +1,6 @@
import qs.components.controls
-import qs.services
import qs.config
import qs.modules.bar.popouts as BarPopouts
-import qs.modules.osd as Osd
import Quickshell
import QtQuick
@@ -15,7 +13,6 @@ CustomMouseArea {
required property Panels panels
required property Item bar
- property bool osdHovered
property point dragStart
property bool dashboardShortcutActive
property bool osdShortcutActive
@@ -62,7 +59,7 @@ CustomMouseArea {
// Only hide if not activated by shortcut
if (!osdShortcutActive) {
visibilities.osd = false;
- osdHovered = false;
+ root.panels.osd.hovered = false;
}
if (!dashboardShortcutActive)
@@ -105,11 +102,11 @@ CustomMouseArea {
// Always update visibility based on hover if not in shortcut mode
if (!osdShortcutActive) {
visibilities.osd = showOsd;
- osdHovered = showOsd;
+ root.panels.osd.hovered = showOsd;
} else if (showOsd) {
// If hovering over OSD area while in shortcut mode, transition to hover control
osdShortcutActive = false;
- osdHovered = true;
+ root.panels.osd.hovered = true;
}
// Show/hide session on drag
@@ -191,7 +188,7 @@ CustomMouseArea {
}
if (!inOsdArea) {
root.visibilities.osd = false;
- root.osdHovered = false;
+ root.panels.osd.hovered = false;
}
}
}
@@ -235,10 +232,4 @@ CustomMouseArea {
}
}
}
-
- Osd.Interactions {
- screen: root.screen
- visibilities: root.visibilities
- hovered: root.osdHovered
- }
}