diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-07-20 17:00:34 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-07-20 17:00:34 +1000 |
| commit | 45dce6349a3880cd1bfd09bfb3b4f9a1d03036c3 (patch) | |
| tree | ff57d03467def6ecd1360f6b2ae0784c5bf25ca6 /modules/drawers/Interactions.qml | |
| parent | config: allow disabling background (diff) | |
| download | caelestia-shell-45dce6349a3880cd1bfd09bfb3b4f9a1d03036c3.tar.gz caelestia-shell-45dce6349a3880cd1bfd09bfb3b4f9a1d03036c3.tar.bz2 caelestia-shell-45dce6349a3880cd1bfd09bfb3b4f9a1d03036c3.zip | |
internal: code style
Diffstat (limited to 'modules/drawers/Interactions.qml')
| -rw-r--r-- | modules/drawers/Interactions.qml | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/modules/drawers/Interactions.qml b/modules/drawers/Interactions.qml index 3be6d31..60e74de 100644 --- a/modules/drawers/Interactions.qml +++ b/modules/drawers/Interactions.qml @@ -53,12 +53,13 @@ MouseArea { visibilities.osd = false; osdHovered = false; } - if (!dashboardShortcutActive) { + + if (!dashboardShortcutActive) visibilities.dashboard = false; - } - if (!utilitiesShortcutActive) { + + if (!utilitiesShortcutActive) visibilities.utilities = false; - } + popouts.hasCurrent = false; if (Config.bar.showOnHover) @@ -71,18 +72,16 @@ MouseArea { const y = event.y; // Show bar in non-exclusive mode on hover - if (!visibilities.bar && Config.bar.showOnHover && x < bar.implicitWidth) { + if (!visibilities.bar && Config.bar.showOnHover && x < bar.implicitWidth) bar.isHovered = true; - } // Show/hide bar on drag if (pressed && dragStart.x < bar.implicitWidth) { const dragX = x - dragStart.x; - if (dragX > Config.bar.dragThreshold) { + if (dragX > Config.bar.dragThreshold) visibilities.bar = true; - } else if (dragX < -Config.bar.dragThreshold) { + else if (dragX < -Config.bar.dragThreshold) visibilities.bar = false; - } } // Show osd on hover |