mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-13 03:59:23 +02:00
Use tab_id < 0 instead of == -1 for synthetic tab check
This commit is contained in:
@@ -1747,7 +1747,7 @@ class TabManager: # {{{
|
||||
return
|
||||
|
||||
tab_id_at_x = self.tab_bar.tab_id_at(int(x))
|
||||
if tab_id_at_x == -1:
|
||||
if tab_id_at_x < 0: # synthetic tab (e.g. "+" new-tab button)
|
||||
if button == GLFW_MOUSE_BUTTON_LEFT and action == GLFW_RELEASE:
|
||||
self.new_tab()
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user