refactor: allow updating full drag context

This commit is contained in:
CJ van den Berg 2026-01-15 15:45:55 +01:00
parent 998ee051ba
commit 760d498f53
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9

View file

@ -1775,9 +1775,10 @@ pub fn get_keybind_mode() ?Mode {
return self.input_mode_ orelse self.delayed_init_input_mode;
}
pub fn update_drag_source(drag_source: *Widget) void {
pub fn update_drag_source(drag_source: *Widget, btn: input.MouseType) void {
const self = current();
self.drag_source = drag_source;
self.drag_button = btn;
}
fn set_drag_source(self: *Self, drag_source: ?*Widget, btn: input.MouseType) void {