mirror of
https://github.com/Trensa-Organization/hy3.git
synced 2025-03-15 18:53:40 +01:00
parent
b341fe60a7
commit
102e652fe9
1 changed files with 3 additions and 2 deletions
|
@ -548,8 +548,9 @@ void Hy3TabGroup::renderTabBar() {
|
|||
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};
|
||||
|
||||
if (scaled_pos.x > monitor_size.x || scaled_pos.y > monitor_size.y
|
||||
|| scaled_pos.x + scaled_size.x < 0 || scaled_pos.y + scaled_size.y < 0)
|
||||
// monitor size is not scaled
|
||||
if (pos.x > monitor_size.x || pos.y > monitor_size.y || scaled_pos.x + scaled_size.x < 0
|
||||
|| scaled_pos.y + scaled_size.y < 0)
|
||||
return;
|
||||
|
||||
if (!this->bar.damaged) {
|
||||
|
|
Loading…
Add table
Reference in a new issue