From db1b814d1bf862d5bce35827399284938175551c Mon Sep 17 00:00:00 2001 From: Toshimichi0915 Date: Thu, 16 Jan 2025 01:24:53 +0900 Subject: [PATCH] Fix overviewMonitor update timing --- .config/ags/modules/overview/overview_hyprland.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.config/ags/modules/overview/overview_hyprland.js b/.config/ags/modules/overview/overview_hyprland.js index bbdda34e5..d0755902a 100644 --- a/.config/ags/modules/overview/overview_hyprland.js +++ b/.config/ags/modules/overview/overview_hyprland.js @@ -414,7 +414,10 @@ export default () => { } }) .hook(App, (box, name, visible) => { // Update on open - if (name == 'overview' && visible) box.attribute.update(box); + if (name == 'overview' && visible) { + overviewMonitor.value = Hyprland.active.monitor.id + box.attribute.update(box); + } }) }, }); @@ -434,6 +437,6 @@ export default () => { workspaces: userOptions.overview.numOfCols, }) ) - }), - }).hook(Hyprland, () => { overviewMonitor.value = Hyprland.active.monitor.id; }); + }) + }) }