fix: don't render for all plain mouse move events
This commit is contained in:
parent
7c19236fa6
commit
ba86f34669
1 changed files with 2 additions and 1 deletions
|
|
@ -718,7 +718,8 @@ fn dispatch_mouse(ctx: *anyopaque, y: c_int, x: c_int, cbor_msg: []const u8) voi
|
|||
self.update_mouse_idle_timer();
|
||||
const m: tp.message = .{ .buf = cbor_msg };
|
||||
const from = tp.self_pid();
|
||||
self.unrendered_input_events_count += 1;
|
||||
if (!(m.match(.{ "M", tp.more }) catch false))
|
||||
self.unrendered_input_events_count += 1;
|
||||
const send_func = if (self.drag_source) |_| &send_mouse_drag else &send_mouse;
|
||||
send_func(self, y, x, from, m) catch |e| self.logger.err("dispatch mouse", e);
|
||||
var btn: input.MouseType = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue