1
0
Fork 0
forked from wry/wry

tree: restack containing float when node is activated

This commit is contained in:
Julian Orth 2025-07-16 21:36:45 +02:00
parent d038df28f7
commit afe2022953
4 changed files with 15 additions and 1 deletions

View file

@ -94,9 +94,11 @@ impl ToolOwner for DefaultToolOwner {
if state == ToolButtonState::Released {
return;
}
let node = tool.node.get();
node.node_restack();
let owner = Rc::new(GrabToolOwner {
buttons: Default::default(),
node: tool.node.get(),
node,
});
tool.tool_owner.owner.set(owner.clone());
owner.button(tool, time_usec, button, state);