Repository navigation
Add on_hover_change; keep overlay drags in screen travel when the window moves - #11
Merged
Merged
Conversation
kitlangton
force-pushed
the
hex-motion
branch
from
October 23, 2026 18:28
aaf9b0c to
6ba8024
Compare
kitlangton
force-pushed
the
hex-motion
branch
from
October 23, 2026 18:31
6ba8024 to
3917f83
Compare
adeerkhan
added a commit
to adeerkhan/rune
that referenced
this pull request
Nov 12, 2026
The completion thread polls the device in a loop, and `SurfaceRenderer` had no `Drop`, so its fields dropped in declaration order: the wgpu `Device` first, then the sender that ends the thread's wait. The thread was therefore still polling a device that was being torn down, and the poll reached driver state that had already gone. It shows up as a SIGSEGV in the Vulkan driver at process exit: anomalyco#2 <ash::device::Device>::get_semaphore_counter_value () anomalyco#3 <wgpu_hal::vulkan::Fence>::get_latest () anomalyco#6 <wgpu_core::device::resource::Device>::maintain () anomalyco#10 <wgpu::api::device::Device>::poll () anomalyco#11 <rune::native_surface::pipeline::SurfaceRenderer>::with_pipeline ({closure#1}) The thread is now joined in `Drop`, before the device is dropped.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What it does
El::on_hover_change(|s, inside, tx| ..)fires on entering and leaving an element's rect, children included. It is not a primary target, so child buttons keep their presses and hover. A held press stays inside until release.place,set_placement,set_align) now keepsDrag::dx/dyas pointer travel, so a dragged capsule follows the pointer instead of feeding back.How it works
on_hover_changeelements under the pointer (hover_within) and queuesHoverChangeactions on pointer move, leave and release.Overlay::place_windowcompares the window's outer position before and after placing and callsRuntime::window_moved(dx, dy), which shifts the pointer and the press origin.Risk
Low. Both are opt-in except for the drag fix, which only applies to overlays that move during a drag.
Proof
Two new runtime tests (hover across a child and through a held press; drag travel across
window_moved). rune + rune-kit: 354 passed.