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,6 +718,7 @@ fn dispatch_mouse(ctx: *anyopaque, y: c_int, x: c_int, cbor_msg: []const u8) voi
|
||||||
self.update_mouse_idle_timer();
|
self.update_mouse_idle_timer();
|
||||||
const m: tp.message = .{ .buf = cbor_msg };
|
const m: tp.message = .{ .buf = cbor_msg };
|
||||||
const from = tp.self_pid();
|
const from = tp.self_pid();
|
||||||
|
if (!(m.match(.{ "M", tp.more }) catch false))
|
||||||
self.unrendered_input_events_count += 1;
|
self.unrendered_input_events_count += 1;
|
||||||
const send_func = if (self.drag_source) |_| &send_mouse_drag else &send_mouse;
|
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);
|
send_func(self, y, x, from, m) catch |e| self.logger.err("dispatch mouse", e);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue