From f781e5ca0875a8ae22a50ce94d42aaad6637a658 Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Wed, 15 Jan 2025 16:32:49 +0100 Subject: [PATCH] add note for #1047 --- .config/ags/modules/overview/overview_hyprland.js | 1 + 1 file changed, 1 insertion(+) diff --git a/.config/ags/modules/overview/overview_hyprland.js b/.config/ags/modules/overview/overview_hyprland.js index b7a2fb411..ebbe07f4e 100644 --- a/.config/ags/modules/overview/overview_hyprland.js +++ b/.config/ags/modules/overview/overview_hyprland.js @@ -60,6 +60,7 @@ export default (overviewMonitor = 0) => { else if (x < 0) { w = x + w; x = 0; } if (y + h <= 0) x += (Math.floor(y / monitors[monitor].height) * monitors[monitor].height); else if (y < 0) { h = y + h; y = 0; } + // Prevents throwing an error when multiple monitors are plugged in but only one is enabled (#1047) if (monitors.length - 1 < monitor) { monitor = monitors.length - 1; }