From bb6717666a669aa81cda28896ed292ca5af55ece Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Mon, 16 Mar 2026 17:07:54 -0400 Subject: change things --- modules/drawers/Interactions.qml | 32 -------------------------------- 1 file changed, 32 deletions(-) (limited to 'modules/drawers/Interactions.qml') diff --git a/modules/drawers/Interactions.qml b/modules/drawers/Interactions.qml index 9579b15..8c026ce 100644 --- a/modules/drawers/Interactions.qml +++ b/modules/drawers/Interactions.qml @@ -16,7 +16,6 @@ CustomMouseArea { property point dragStart property bool dashboardShortcutActive property bool osdShortcutActive - property bool utilitiesShortcutActive function withinPanelHeight(panel: Item, x: real, y: real): bool { const panelY = Config.border.thickness + panel.y; @@ -65,9 +64,6 @@ CustomMouseArea { if (!dashboardShortcutActive) visibilities.dashboard = false; - if (!utilitiesShortcutActive) - visibilities.utilities = false; - if (!popouts.currentName.startsWith("traymenu") || (popouts.current?.depth ?? 0) <= 1) { popouts.hasCurrent = false; bar.closeTray(); @@ -79,9 +75,6 @@ CustomMouseArea { } onPositionChanged: event => { - if (popouts.isDetached) - return; - const x = event.x; const y = event.y; const dragX = x - dragStart.x; @@ -187,17 +180,6 @@ CustomMouseArea { visibilities.dashboard = false; } - // Show utilities on hover - const showUtilities = inBottomPanel(panels.utilities, x, y); - - // Always update visibility based on hover if not in shortcut mode - if (!utilitiesShortcutActive) { - visibilities.utilities = showUtilities; - } else if (showUtilities) { - // If hovering over utilities area while in shortcut mode, transition to hover control - utilitiesShortcutActive = false; - } - // Show popouts on hover if (x < bar.implicitWidth) { bar.checkPopout(y); @@ -216,7 +198,6 @@ CustomMouseArea { if (!root.visibilities.launcher) { root.dashboardShortcutActive = false; root.osdShortcutActive = false; - root.utilitiesShortcutActive = false; // Also hide dashboard and OSD if they're not being hovered const inDashboardArea = root.inTopPanel(root.panels.dashboard, root.mouseX, root.mouseY); @@ -257,18 +238,5 @@ CustomMouseArea { root.osdShortcutActive = false; } } - - function onUtilitiesChanged() { - if (root.visibilities.utilities) { - // Utilities became visible, immediately check if this should be shortcut mode - const inUtilitiesArea = root.inBottomPanel(root.panels.utilities, root.mouseX, root.mouseY); - if (!inUtilitiesArea) { - root.utilitiesShortcutActive = true; - } - } else { - // Utilities hidden, clear shortcut flag - root.utilitiesShortcutActive = false; - } - } } } -- cgit v1.3.1-freya