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
Adopt winit 0.31 drag-and-drop (positions, Wayland) when eframe moves to it #78
bullseye uses winit 0.30.13 through eframe. 0.30 delivers file drops only on X11, with no position during the drag. On the user's Fedora/Wayland desktop, the spike's gallery got no file drag events at all.
When eframe moves, migrate bullseye first (CLAUDE.md), then build outside drops on the 0.31 events. The spike's shared insertion resolver takes DragMoved positions directly.
Until then: in-app DnD proceeds independently. Outside drops on Linux need XWayland. A file-picker fallback (e.g. rfd through the desktop portal) is worth considering regardless, for accessibility and as an alternative to dragging.
Blocks the "drops into the app" part of #33. Related: #71 (spike), #47 (toolchain pinning).
macOS check (user, 2026-11-10): dragging a .png from Finder onto dnd_gallery shows the drag cursor. On drop, a new panel is appended at the end of the list. winit 0.30 delivers the drop on macOS but no pointer position during the hover or at the drop, so the shared insertion resolver gets no point and falls back to the end. There is no hover gap.
Summary on winit 0.30: macOS delivers the drop without a position; Linux/Wayland delivers nothing; X11 delivers the drop without a position (per source); the web delivers no position. Positioned outside drops therefore need winit 0.31's DragMoved/DragDropped (#78) on every platform.
Spike follow-up: the demo failed silently: the panel appended off-screen, and app.dropped is never shown. A status line and scroll-into-view are proposed.
Correction to the macOS result (user retried, 2026-11-10): the drop does insert the new panel where the cursor is released. What's missing is the live preview while hovering: no gap follows the cursor, the panel just appears on release. The first tries appended at the end, most likely drops where no fresh pointer position had arrived yet.
Corrected summary on winit 0.30:
macOS: drop delivered with a usable position at release; no position during the hover, so no live gap.
Linux/Wayland: nothing delivered.
X11: drop delivered (per source); hover position unverified.
Web: no position.
#78 (winit 0.31 DragMoved) is what adds the live preview everywhere, and Wayland support.
Activity
samitbasu commentedon Nov 10, 2026
macOS check (user, 2026-11-10): dragging a
.pngfrom Finder ontodnd_galleryshows the drag cursor. On drop, a new panel is appended at the end of the list. winit 0.30 delivers the drop on macOS but no pointer position during the hover or at the drop, so the shared insertion resolver gets no point and falls back to the end. There is no hover gap.Summary on winit 0.30: macOS delivers the drop without a position; Linux/Wayland delivers nothing; X11 delivers the drop without a position (per source); the web delivers no position. Positioned outside drops therefore need winit 0.31's
DragMoved/DragDropped(#78) on every platform.Spike follow-up: the demo failed silently: the panel appended off-screen, and
app.droppedis never shown. A status line and scroll-into-view are proposed.samitbasu commentedon Nov 10, 2026
Correction to the macOS result (user retried, 2026-11-10): the drop does insert the new panel where the cursor is released. What's missing is the live preview while hovering: no gap follows the cursor, the panel just appears on release. The first tries appended at the end, most likely drops where no fresh pointer position had arrived yet.
Corrected summary on winit 0.30:
#78 (winit 0.31
DragMoved) is what adds the live preview everywhere, and Wayland support.docs/dnd.md: two-level target feedback, verified platform results (#71)