From 546dd9b225cd068e8517fc47402128df95d68157 Mon Sep 17 00:00:00 2001 From: Luflosi Date: Wed, 24 Jul 2019 23:11:01 -0500 Subject: [PATCH] Remove unnecessary call to monotonic() Assuming the call to `update_drag()` returns basically instantly, this call to `monotonic()` can be safely removed. --- kitty/mouse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kitty/mouse.c b/kitty/mouse.c index 8079b2b1d..5c777f521 100644 --- a/kitty/mouse.c +++ b/kitty/mouse.c @@ -295,7 +295,7 @@ HANDLER(handle_move_event) { double now = monotonic(); if ((now - w->last_drag_scroll_at) >= 0.02 || mouse_cell_changed) { update_drag(false, w, false, 0); - w->last_drag_scroll_at = monotonic(); + w->last_drag_scroll_at = now; } } } else {