From 62422d582da3f0df136996d55b53a05ad61bb805 Mon Sep 17 00:00:00 2001 From: astar76 Date: Thu, 19 Nov 2026 10:00:41 -0600 Subject: [PATCH] fix: tooltips no longer swallow clicks; split toggle keeps pane views Each control opened its own PopupWindow as tooltip. While one showed, Slint dropped every press outside it, so after resting on a button (the split toggle above all) the next click did nothing. Tooltips are now one input-transparent layer per window (Tips + TooltipLayer), filled in by StateLayer. Toggle buttons whose state the shell owns (sidebar, previews, split) no longer flip `checked` themselves, which broke their binding. Switching tabs or the split now updates, adds or removes single pane rows instead of rebuilding every pane view. xdnd_probe gains a `click` mode for real clicks under Xvfb. Co-Authored-By: Claude Opus 5.5 --- CLAUDE.md | 1 + crates/tunal/examples/xdnd_probe.rs | 51 ++++++++++++++++++++ crates/tunal/src/shell/mod.rs | 35 ++++++++++---- crates/tunal/ui/app.slint | 5 ++ crates/tunal/ui/components/icon-button.slint | 5 +- crates/tunal/ui/components/state-layer.slint | 31 ++++++------ crates/tunal/ui/components/tooltip.slint | 29 +++++++++++ crates/tunal/ui/gallery.slint | 6 ++- crates/tunal/ui/shell/toolbar.slint | 10 ++-- 9 files changed, 141 insertions(+), 32 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index bacd590..c02e05f 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -92,6 +92,7 @@ Never modify: `PROMPT.md` (the user's brief), the user's other projects under `~ | `TUNAL_SETTINGS=<0-5> cargo run -p tunal -- --screenshot --size 1000x700` (`XDG_CONFIG_HOME=`) | settings dialog page over a folder | S013 | | `TUNAL_DRAG=x1,y1,x2,y2[,hold] TUNAL_REDUCED_MOTION=1 cargo run -p tunal -- --screenshot --size 1200x760` (`XDG_CONFIG_HOME=`) | drags between window points and drops (drop menu) or holds (glow + drag image) before the frame | S014 | | `Xvfb :97 &` then `env -u WAYLAND_DISPLAY DISPLAY=:97 target/debug/tunal &` and `DISPLAY=:97 target/debug/examples/xdnd_probe x1 y1 x2 y2` (or `in x y `) | X11 native DnD: fake XTEST drag out of the window onto a probe target, or a probe source dropping into the app; Xvfb only | S031 | +| same, with `SLINT_BACKEND=winit-software` (so `DISPLAY=:97 import -window root ` captures it), then `DISPLAY=:97 target/debug/examples/xdnd_probe click x y [count] [gap_ms] [hover_ms]` | real clicks (XTEST) on a window point after resting `hover_ms` there, e.g. the split toggle with a tooltip showing; Xvfb only | split/tooltip fix | | `TUNAL_APPEARANCE=1 XDG_CONFIG_HOME= cargo run -p tunal -- --screenshot --size 1000x760` | folder appearance dialog for `` (theme icons looked up at once); `cargo run -p tunal-dirmeta --example roundtrip -- ` sets `Icon` in `/.directory` and prints the old values | S015 | | `TUNAL_PLAY=