From 4f06a1286a2740035debb89bc01789f61e068d65 Mon Sep 17 00:00:00 2001 From: outfoxxed Date: Sat, 13 Jul 2024 22:37:44 -0700 Subject: [PATCH] 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. --- src/TabGroup.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TabGroup.cpp b/src/TabGroup.cpp index 76184ee..ab5741d 100644 --- a/src/TabGroup.cpp +++ b/src/TabGroup.cpp @@ -533,7 +533,7 @@ void Hy3TabGroup::renderTabBar() { auto scaled_pos = Vector2D(std::round(pos.x * scale), std::round(pos.y * scale)); auto scaled_size = Vector2D(std::round(size.x * scale), std::round(size.y * scale)); - wlr_box box = {scaled_pos.x, scaled_pos.y, scaled_size.x, scaled_size.y}; + CBox box = {scaled_pos.x, scaled_pos.y, scaled_size.x, scaled_size.y}; // monitor size is not scaled if (pos.x > monitor_size.x || pos.y > monitor_size.y || scaled_pos.x + scaled_size.x < 0