From daeae9a0f862865afc94a721843ba18f59d01e1a Mon Sep 17 00:00:00 2001 From: Toshimichi0915 Date: Thu, 16 Jan 2025 01:02:25 +0900 Subject: [PATCH] Change execution order --- .config/ags/modules/overview/overview_hyprland.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.config/ags/modules/overview/overview_hyprland.js b/.config/ags/modules/overview/overview_hyprland.js index 2bb207330..2d51adfb8 100644 --- a/.config/ags/modules/overview/overview_hyprland.js +++ b/.config/ags/modules/overview/overview_hyprland.js @@ -65,12 +65,12 @@ export default () => { if (monitors.length - 1 < monitor) { monitor = monitors.length - 1; } - // Properly scale for multi monitors - w *= monitors[overviewMonitor.value].width / monitors[monitor].width; - h *= monitors[overviewMonitor.value].height / monitors[monitor].height; // Truncate if offscreen if (x + w > monitors[monitor].width) w = monitors[monitor].width - x; if (y + h > monitors[monitor].height) h = monitors[monitor].height - y; + // Properly scale for multi monitors + w *= monitors[overviewMonitor.value].width / monitors[monitor].width; + h *= monitors[overviewMonitor.value].height / monitors[monitor].height; if (c.length == 0) c = initialClass; const iconName = substitute(c);