From f78feb5abfa241a56447e9a90d9faa06d7a189eb Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 25 Oct 2021 12:23:54 +0530 Subject: [PATCH] Allow very long middle clicks to close tabs --- kitty/tabs.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/kitty/tabs.py b/kitty/tabs.py index 20410995d..5788d7256 100644 --- a/kitty/tabs.py +++ b/kitty/tabs.py @@ -998,8 +998,7 @@ class TabManager: # {{{ self.set_active_tab_idx(i) elif button == GLFW_MOUSE_BUTTON_MIDDLE and action == GLFW_RELEASE and self.recent_mouse_events: p = self.recent_mouse_events[-1] - ci = get_click_interval() - if p.button == button and p.action == GLFW_PRESS and p.tab_idx == i and now - p.at <= ci: + if p.button == button and p.action == GLFW_PRESS and p.tab_idx == i: tab = self.tabs[i] get_boss().close_tab(tab) self.recent_mouse_events.append(TabMouseEvent(button, modifiers, action, now, i))