You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Linux: the double-click interval is fixed at 0.5 s #545
presses 0.45 s apart: doubles 1
presses 0.55 s apart: doubles 0
Under sway with GNOME's double-click set to 1200 ms, presses 583–1033 ms apart never pair
(measured at 78d22ed). macOS and Windows read the system value when a window is created
(window/create.rs:84–95 at 29aacb6); Linux doesn't. Runtime::double_click_interval is public, but a
windowed app has no Runtime. The interval also drives .window_drag()'s double-click
maximise, word and line selection, and Drag::clicks.
Ask. Read the desktop's interval on Linux (the Settings portal's org.gnome.desktop.peripherals.mouse double-click, else GSettings, else kdeglobals' DoubleClickInterval), or add App::double_click_interval(secs) and a Tx setter.
Linux windows and overlays now read the desktop's double-click interval from the XDG Settings portal (org.gnome.desktop.peripherals.mousedouble-click in ms, clamped to 50–5000 ms) on the existing background portal worker and follow live SettingChanged updates. When the portal does not answer that key (or the dbus feature is off), a one-shot off-UI-thread fallback reads kdeglobals ([KDE]DoubleClickInterval) on KDE desktops or GSettings via libgio-2.0.so.0 (falling back to kdeglobals) elsewhere, defaulting to 0.5 s when none answers. This follows XDG Desktop Portal, GNOME GSettings, and KDE KConfig (matching GTK 4, Chromium, Qt, and Rune's macOS/Windows behaviour).
No App/Tx setter was added: system settings now drive the interval on all three desktop platforms, and Runtime::double_click_interval stays unchanged for headless tests. If you still have a use case that needs a programmatic per-app override, feel free to say so.
Verified with unit tests and compiles on Windows, Linux (aarch64, with dbus and with --no-default-features), macOS, and wasm32 (WebGPU and WebGL2). Not verified on a live Linux desktop session against a running portal daemon or live GSettings database—those thin FFI/D-Bus edges were compiled and covered through unit tests for the decoding, clamping, kdeglobals parsing, fallback selection, and atomic state helpers.
Activity
Hona commentedon Nov 24, 2026
Implemented on
devin #1923 (c6506ae).Linux windows and overlays now read the desktop's double-click interval from the XDG Settings portal (
org.gnome.desktop.peripherals.mousedouble-clickin ms, clamped to 50–5000 ms) on the existing background portal worker and follow liveSettingChangedupdates. When the portal does not answer that key (or thedbusfeature is off), a one-shot off-UI-thread fallback readskdeglobals([KDE]DoubleClickInterval) on KDE desktops or GSettings vialibgio-2.0.so.0(falling back tokdeglobals) elsewhere, defaulting to0.5s when none answers. This follows XDG Desktop Portal, GNOME GSettings, and KDE KConfig (matching GTK 4, Chromium, Qt, and Rune's macOS/Windows behaviour).No
App/Txsetter was added: system settings now drive the interval on all three desktop platforms, andRuntime::double_click_intervalstays unchanged for headless tests. If you still have a use case that needs a programmatic per-app override, feel free to say so.Verified with unit tests and compiles on Windows, Linux (aarch64, with
dbusand with--no-default-features), macOS, and wasm32 (WebGPU and WebGL2). Not verified on a live Linux desktop session against a running portal daemon or live GSettings database—those thin FFI/D-Bus edges were compiled and covered through unit tests for the decoding, clamping,kdeglobalsparsing, fallback selection, and atomic state helpers.