mirror of
https://github.com/end-4/dots-hyprland.git
synced 2026-06-05 23:09:26 -05:00
fix: truncate if offscreen (#527)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user