mirror of
https://github.com/danbulant/dots-hyprland
synced 2026-05-25 12:52:09 +00:00
fix: truncate if offscreen (#527)
This commit is contained in:
commit
58d095f6b2
1 changed files with 1 additions and 1 deletions
|
|
@ -61,7 +61,7 @@ export default (overviewMonitor = 0) => {
|
|||
if (y + h <= 0) x += (Math.floor(y / monitors[monitor].height) * monitors[monitor].height);
|
||||
else if (y < 0) { h = y + h; y = 0; }
|
||||
// Truncate if offscreen
|
||||
if (x + w > monitors[monitor]) w = monitors[monitor] - x;
|
||||
if (x + w > monitors[monitor].width) w = monitors[monitor].width - x;
|
||||
if (y + h > monitors[monitor].height) h = monitors[monitor].height - y;
|
||||
|
||||
const iconName = substitute(c);
|
||||
|
|
|
|||
Loading…
Reference in a new issue