4f06a1286a2740035debb89bc01789f61e068d65

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

Message

use CBox over wlr_box in preparation for aq backend

WLR will be removed in the future so wlr_box is not safe to use.

Diff

 1diff --git a/src/TabGroup.cpp b/src/TabGroup.cpp
 2index 76184eee9946b0323b57ca6885f8a62a5f4a776a..ab5741db9e6dce384599cb55114231df2c8e6dc4 100644
 3--- a/src/TabGroup.cpp
 4+++ b/src/TabGroup.cpp
 5@@ -533,7 +533,7 @@ void Hy3TabGroup::renderTabBar() {
 6 
 7 	auto scaled_pos = Vector2D(std::round(pos.x * scale), std::round(pos.y * scale));
 8 	auto scaled_size = Vector2D(std::round(size.x * scale), std::round(size.y * scale));
 9-	wlr_box box = {scaled_pos.x, scaled_pos.y, scaled_size.x, scaled_size.y};
10+	CBox box = {scaled_pos.x, scaled_pos.y, scaled_size.x, scaled_size.y};
11 
12 	// monitor size is not scaled
13 	if (pos.x > monitor_size.x || pos.y > monitor_size.y || scaled_pos.x + scaled_size.x < 0