DankMaterialShell icon indicating copy to clipboard operation
DankMaterialShell copied to clipboard

With clickThrough on, the outermost widget of a section loses its outer edge to the input mask

Open rollecode opened this issue 4 months ago • 0 comments

Compositor

Other

If Other, please specify

driftwm 0.14.2

Distribution

Arch Linux

Select your Installation Method

Distro Packaging

Was this your original Installation method?

Yes

dms doctor -vC

Click to expand
System
- Operating System: Arch Linux (rolling, amd64)
- Display Server: Wayland (WAYLAND_DISPLAY=wayland-1)

Versions
- DMS CLI: dms v1.5.2
- Quickshell: 0.3.0, distributed by Arch Linux
- DMS Shell: v1.5.2

Installation
- Install Type: System package
- DMS path: /usr/share/quickshell/dms

Compositor
- Active: driftwm 0.14.2
- Background Blur: Supported (ext-background-effect-v1)

Description

With clickThrough enabled on the bar, roughly the outer half of the last widget in the centre section stops responding to clicks. The widget renders normally and hover works, the clicks just land somewhere else. Nine widgets in the centre section, top bar, single 3440x1440 output.

With clickThrough off everything is clickable again, which points at the mask rather than the widget: with it on the mask is a union of per-section rects from sectionRect() in DankBarWindow.qml, and that rect comes from section.implicitWidth. When the section grows after the mask was built, the rect stays at the old width and the overflow is outside the input region. The _dep argument threaded into those bindings suggests this re-evaluation has been a problem before.

Widgets do grow after startup here: plugins load asynchronously, and several of mine only reach full width once their first value arrives (a percentage going from 0% to 70% is wider).

I hit the same thing with a long dock a while back, so it may be worth checking the dock's equivalent rect too.

Expected Behavior

Every visible part of a widget takes clicks, regardless of when the section last changed size.

Steps to Reproduce

  1. Enable clickThrough on the bar
  2. Fill the centre section until it is wide (nine widgets here)
  3. Click the outer edge of the last widget

rollecode avatar Jul 26 '26 13:07 rollecode