From e493fa1b0adb3150dfb797a46ccd8bb48359e374 Mon Sep 17 00:00:00 2001 From: cukmekerb Date: Thu, 17 Jun 2021 21:15:30 -0700 Subject: [PATCH] clicking the empty space where the x was no longer closes the tab --- data/core/rootview.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/core/rootview.lua b/data/core/rootview.lua index 41c5f407..037e7580 100644 --- a/data/core/rootview.lua +++ b/data/core/rootview.lua @@ -295,7 +295,7 @@ function Node:tab_hovered_update(px, py) if tab_index then local x, y, w, h = self:get_tab_rect(tab_index) local cx, cw = close_button_location(x, w) - if px >= cx and px < cx + cw and py >= y and py < y + h then + if px >= cx and px < cx + cw and py >= y and py < y + h and config.tab_close_button then self.hovered_close = tab_index end else