mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-08-28 12:21:55 +00:00
Use tab_id < 0 instead of == -1 for synthetic tab check
This commit is contained in:
parent
fd6940a0aa
commit
82c6516718
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue