DankMaterialShell icon indicating copy to clipboard operation
DankMaterialShell copied to clipboard

Hover popout closes when the cursor overshoots to the top edge of the screen

Open Conava opened this issue 2 months ago • 1 comments

Compositor

Hyprland

Distribution

CachyOS

If Other, please specify

No response

Select your Installation Method

Distro Packaging

Was this your original Installation method?

Yes

If no, specify

No response

dms doctor -vC

Click to expand

DMS Doctor Report

System

  • [ok] Operating System: CachyOS
    • ID: cachyos, Version: rolling, Arch: amd64
  • [ok] Architecture: amd64
  • [ok] Display Server: Wayland
    • WAYLAND_DISPLAY=wayland-1

Versions

  • [ok] DMS CLI: dms v1.6.1
    • /usr/bin/dms
  • [ok] Quickshell: Quickshell 0.3.1 (revision , distributed by Arch Linux)
    • /usr/bin/qs
  • [ok] DMS Shell: v1.6.1
    • /run/user/1000/danklinux-shell/d83248ba9119b48a

Installation

  • [ok] DMS Configuration: Found
    • /run/user/1000/danklinux-shell/d83248ba9119b48a
  • [ok] shell.qml: Present
    • /run/user/1000/danklinux-shell/d83248ba9119b48a/shell.qml
  • [info] Install Type: Unknown
    • /run/user/1000/danklinux-shell/d83248ba9119b48a

Compositor

  • [ok] Hyprland: 0.56.2
    • /usr/bin/hyprland
  • [info] Active: Hyprland
  • [ok] Background Blur: Supported
    • Compositor supports ext-background-effect-v1

Quickshell Features

  • [ok] Polkit: Available
    • Authentication prompts
  • [ok] IdleMonitor: Available
    • Idle detection
  • [ok] IdleInhibitor: Available
    • Prevent idle/sleep
  • [ok] ShortcutInhibitor: Available
    • Allow shortcut management (niri)
  • [ok] BackgroundBlur: Available
    • Background blur API support in Quickshell

Optional Features

  • [ok] accountsservice: Available
    • User accounts
  • [ok] power-profiles-daemon: Available
    • Power profile management
  • [ok] logind: Available
    • Session management
  • [ok] cups-pk-helper: Available
    • Printer management
  • [ok] I2C/DDC: 1 monitor(s) detected
    • External monitor brightness control
  • [ok] qt6-imageformats: Installed (5 formats)
    • Formats: WebP, TIFF, GIF, JP2, ICNS (/usr/lib/qt6/plugins/imageformats:/usr/lib/qt/plugins/imageformats:/usr/lib64/qt6/plugins/imageformats)
  • [ok] kimageformats: Installed (4 formats)
    • Formats: AVIF, HEIF, JXL, EXR (/usr/lib/qt6/plugins/imageformats:/usr/lib64/qt6/plugins/imageformats)
  • [ok] Terminal: kitty, alacritty
  • [ok] Network: NetworkManager
    • NetworkManager present. Using NM API.
  • [ok] matugen: Installed
    • Dynamic theming
  • [ok] cava: Installed
    • Audio visualizer
  • [ok] khal: Installed
    • Calendar events
  • [ok] danksearch: Installed
    • File search
  • [ok] dankcalendar: Installed
    • Calendar app
  • [info] fprintd: Not installed
    • Fingerprint auth
  • [ok] adw-gtk3: Installed
    • GTK3 dynamic theming (system copy, applied on next theme apply)

Config Files

  • [ok] settings.json: Present
    • /home/marlon/.config/DankMaterialShell/settings.json
  • [ok] clsettings.json: Present
    • /home/marlon/.config/DankMaterialShell/clsettings.json
  • [ok] plugin_settings.json: Present
    • /home/marlon/.config/DankMaterialShell/plugin_settings.json
  • [ok] session.json: Present
    • /home/marlon/.local/state/DankMaterialShell/session.json
  • [ok] dms-colors.json: Present
    • /home/marlon/.cache/DankMaterialShell/dms-colors.json

Services

  • [ok] dms.service: enabled, active
  • [ok] greetd: enabled

Environment

  • [info] QT_QPA_PLATFORMTHEME: qtengine
  • [info] QT_QPA_PLATFORMTHEME_QT6: Not set
  • [info] QS_ICON_THEME: Not set
  • [warn] XDG_MENU_PREFIX: hyprland- (menu file not found)
    • Dolphin 'Open with…' dialog may be empty. Ensure /etc/xdg/menus/hyprland-applications.menu exists.
  • [ok] qtengine plugin (Qt5): Installed
    • /usr/lib/qt/plugins/platformthemes/libqt5engine-plugin.so
  • [ok] qtengine plugin (Qt6): Installed
    • /usr/lib/qt6/plugins/platformthemes/libqt6engine-plugin.so

Fonts

  • [ok] Normal Font: Inter Variable
    • /run/user/1000/danklinux-shell/d83248ba9119b48a/DankCommon/assets/fonts/inter/InterVariable.ttf
  • [ok] Monospace Font: Fira Code
    • /run/user/1000/danklinux-shell/d83248ba9119b48a/DankCommon/assets/fonts/nerd-fonts/FiraCodeNerdFont-Regular.ttf

Summary: 0 error(s), 1 warning(s), 41 ok

Description

Hovering a bar widget opens its popout below the top bar, as expected. But aiming the mouse back up at the triggering icon is not that precise: the target that matters is mostly horizontal (which icon), and it's easy to overshoot vertically past the icon and land on the very top edge of the screen instead of stopping on the bar. When that happens, the popout closes immediately, then reopens as soon as the mouse comes back down onto the bar. The result is an open → close → open flicker on what's meant to be a single hover.

The hover-close path has a grace timer specifically to avoid this kind of thing: DankBarHoverController.qml's _hoverCloseTimer (120ms) and PopoutHoverDismiss.qml's own 150ms grace timer both exist to tolerate the cursor briefly crossing a gap between the bar and the popout body. Both ultimately gate on PopoutManager.cursorOverBar() (Common/PopoutManager.qml), which treats the cursor as "still over the bar" if it's within a 16px pad of the bar window's own bounds. I run with Frame mode enabled (frameEnabled: true, frameThickness: 10), so the bar sits inset from the physical screen edge rather than flush against it, and the actual bar window bounds cursorOverBar checks against may not extend all the way to y=0. That's a plausible reason the very top edge specifically falls outside the grace zone, but I haven't confirmed it's the exact mechanism, just where the relevant grace-timer and hit-testing logic lives.

Two other issues touch the same grace-timer/hover-dismiss machinery without matching this exact symptom: #2963 (workspace scroll-switch reverting when a hover popout closes) and the now-closed #3217/#3223 (clicking a hovered widget closed its popout and immediately reopened it, fixed in DankBarHoverController.qml). Neither is a duplicate — this is specifically the top-edge overshoot causing a close-then-reopen — but flagging both as prior art in case they share a cause or a fix.

Expected Behavior

Overshooting past the triggering icon to the top edge of the screen, while still moving toward the bar, shouldn't close the popout. The existing grace timer already tolerates crossing gaps between the bar and the popout body; the top edge of the screen should be treated the same way, not as leaving the bar.

Steps to Reproduce

  1. Enable Hover Popouts in bar settings, bar position top. I run with Frame mode enabled (frameThickness: 10).
  2. Hover a bar widget (e.g. the clock, or the system tray) so its popout opens below the bar.
  3. Move the mouse from the popout back up toward the triggering icon, but overshoot vertically past the icon and the bar itself, all the way to the very top edge of the screen, rather than stopping precisely on the icon.
  4. Watch the popout: it closes, then reopens as soon as the mouse moves back down onto the bar/icon. Repeating step 3 reproduces the flicker every time.

Error Messages/Logs

None — no errors in the dms.service journal or the terminal when it happens.

Screenshots/Recordings

No response

Conava avatar Sep 16 '26 19:09 Conava

Cannot reproduce in 2.0 anymore, closing the issue

Conava avatar Oct 21 '26 08:10 Conava