14d9bdac36ca6f416a3ef19f42624ee72537868d

Author
outfoxxed <outfoxxed@outfoxxed.me>
Committer
outfoxxed <outfoxxed@outfoxxed.me>
Date

Message

unconditionally warp resized windows when hidden

Diff

 1diff --git a/CHANGELOG.md b/CHANGELOG.md
 2index 536293a13e82c3f2714143b357e360f45b8e6658..1e7a7b5af2b1501d963d13ed9a5c282e40935764 100644
 3--- a/CHANGELOG.md
 4+++ b/CHANGELOG.md
 5@@ -5,6 +5,7 @@
 6 - Fixed focus across monitors not working.
 7 - Fixed makegroup toggle not working.
 8 - Fixed window input area covering reserved area.
 9+- Fixed tab bars not being clickable after resizing the tabbed node.
10 
11 # hl0.54.2 and before
12 
13diff --git a/src/Hy3Node.cpp b/src/Hy3Node.cpp
14index 23395fbb047762e9abbd563efc71862a1c11fe4d..389289b032d3f98b17a22a286b70fc33b25aec42 100644
15--- a/src/Hy3Node.cpp
16+++ b/src/Hy3Node.cpp
17@@ -339,7 +339,8 @@ void Hy3Node::recalcSizePosRecursive(CBox offsets, bool no_animation) {
18 	if (this->is_target()) {
19 		this->as_window()->setHidden(this->hidden);
20 		this->as_target()->setPositionGlobal({.logicalBox = this->logicalBox, .visualBox = this->visualBox});
21-		if (no_animation) this->as_target()->warpPositionSize();
22+		// warp on hidden fixes bounding boxes for the tab click handler
23+		if (no_animation || this->hidden) this->as_target()->warpPositionSize();
24 		return;
25 	}
26