mirror of
https://github.com/Trensa-Organization/hy3.git
synced 2025-03-15 18:53:40 +01:00
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:
parent
d200873687
commit
4f06a1286a
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue