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.
This commit is contained in:
outfoxxed 2024-07-13 22:37:44 -07:00
parent d200873687
commit 4f06a1286a
No known key found for this signature in database
GPG key ID: 4C88A185FB89301E

View file

@ -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