AvengeMedia / AvengeMedia/DankMaterialShell

Can't dismiss widgets / modals / popups

Open
#2,201 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
QML
Stars
8.1k
Forks
515
Avg merge
1d 5h
Merged PRs (30d)
100

Description

### Compositor

Hyprland

### Distribution

NixOS

### 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: NixOS 26.05 (Yarara)
- Supported for runtime (install via NixOS module or Flake)
- [ok] Architecture: amd64
- [ok] Display Server: Wayland
- WAYLAND_DISPLAY=wayland-1

**Versions**
- [ok] DMS CLI: dms 1.5-beta+date=2026-04-07_32c063a
- /nix/store/p8d6qx43hib4fxlif8clf61gn1dv3bin-dms-shell-1.5-beta+date=2026-04-07_32c063a/bin/.dms-wrapped
- [ok] Quickshell: quickshell 0.2.1, revision 41828c4180fb921df7992a5405f5ff05d2ac2fff, distributed by: Official-Nix-Flake
- /etc/profiles/per-user/jon/bin/qs
- [ok] DMS Shell: 1.5-beta+date=2026-04-07_32c063a
- /nix/store/p8d6qx43hib4fxlif8clf61gn1dv3bin-dms-shell-1.5-beta+date=2026-04-07_32c063a/share/quickshell/dms

**Installation**
- [ok] DMS Configuration: Found
- /nix/store/p8d6qx43hib4fxlif8clf61gn1dv3bin-dms-shell-1.5-beta+date=2026-04-07_32c063a/share/quickshell/dms
- [ok] shell.qml: Present
- /nix/store/p8d6qx43hib4fxlif8clf61gn1dv3bin-dms-shell-1.5-beta+date=2026-04-07_32c063a/share/quickshell/dms/shell.qml
- [info] Install Type: Nix store
- /nix/store/p8d6qx43hib4fxlif8clf61gn1dv3bin-dms-shell-1.5-beta+date=2026-04-07_32c063a/share/quickshell/dms

**Compositor**
- [ok] Hyprland: 0.54.3
- /etc/profiles/per-user/jon/bin/hyprland
- [ok] Sway: 1.11
- /etc/profiles/per-user/jon/bin/sway
- [info] Active: Hyprland

**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)

**Optional Features**
- [ok] accountsservice: Available
- User accounts
- [ok] power-profiles-daemon: Available
- Power profile management
- [ok] logind: Available
- Session management
- [warn] cups-pk-helper: Not available (install cups-pk-helper)
- Printer management
- [info] I2C/DDC: No monitors detected
- External monitor brightness control
- [ok] qt6-imageformats: Installed (4 formats)
- Formats: WebP, TIFF, JP2, ICNS (/nix/store/92l5lp25rq5xdpjplqjygsdi043dlzmh-qtimageformats-6.10.1/lib/qt-6/plugins/imageformats)
- [ok] kimageformats: Installed (4 formats)
- Formats: AVIF, HEIF, JXL, EXR (/nix/store/aa5g3f0vqgdlk4fy21aia3if74672aw9-kimageformats-6.23.0/lib/qt-6/plugins/imageformats)
- [ok] Terminal: alacritty, foot
- [ok] Network: NetworkManager
- NetworkManager present. Using NM API.
- [ok] matugen: Installed
- Dynamic theming
- [ok] dgop: Installed
- System monitoring
- [ok] cava: Installed
- Audio visualizer
- [ok] khal: Installed
- Calendar events
- [info] danksearch: Not installed
- File search
- [info] fprintd: Not installed
- Fingerprint auth

**Config Files**
- [warn] settings.json: Present (read-only)
- /home/jon/.config/DankMaterialShell/settings.json
- [info] clsettings.json: Not yet created
- /home/jon/.config/DankMaterialShell/clsettings.json
- [warn] plugin_settings.json: Present (read-only)
- /home/jon/.config/DankMaterialShell/plugin_settings.json
- [ok] session.json: Present
- /home/jon/.local/state/DankMaterialShell/session.json
- [ok] dms-colors.json: Present
- /home/jon/.cache/DankMaterialShell/dms-colors.json

**Services**
- [ok] dms.service: enabled, active
- [info] greetd: Not installed
- Optional greeter service

**Environment**
- [info] QT_QPA_PLATFORMTHEME: adwaita
- [info] QS_ICON_THEME: Not set

---
**Summary:** 0 error(s), 3 warning(s), 28 ok

### Description

In DankBar, when I open a modal (or widget, or popup, not exactly sure about the nomenclature) like the weather one, or the clipboard one, or the one with the wifi / bluetooth settings, I can't dismiss it in the usual ways. I expect that clicking to open the menu will also click to dismiss the menu (i.e., for the default behavior to be toggle, rather than just open), but it just opens with no way to close it. If I click outside the modal, like on the desktop or in another application, it also does not dismiss the modal, as I expect it to.

I don't really have any configuration apart from what's in the default nixos / home-manager module.

### Expected Behavior

(1) Clicking to open a widget modal menu should toggle, rather than just open, that menu
(2) Clicking anywhere outside the widget's modal menu should close the menu

### Steps to Reproduce

1. Install DMS using the home-manager module
2. Click any widget in DankBar
3. Click the widget again
4. Notice that there's no way to dismiss the widget's modal menu. It stays open no matter what
5. Try clicking outside the modal menu
6. Notice that the menu still hasn't closed

### Error Messages/Logs

_No response_

### Screenshots/Recordings

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.