From 9bf673fb1a9a25330c55476a4a8d5c22b9f69339 Mon Sep 17 00:00:00 2001 From: Ali Elnwegy Date: Mon, 4 Mar 2024 15:23:57 +0100 Subject: [PATCH] fix: Fixed bar corners not appearing on multi monitor setup --- .config/ags/modules/bar/main.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.config/ags/modules/bar/main.js b/.config/ags/modules/bar/main.js index da3962ff..601221c3 100644 --- a/.config/ags/modules/bar/main.js +++ b/.config/ags/modules/bar/main.js @@ -103,8 +103,9 @@ export const Bar = async (monitor = 0) => { }); } -export const BarCornerTopleft = (id = '') => Widget.Window({ - name: `barcornertl${id}`, +export const BarCornerTopleft = (monitor = 0) => Widget.Window({ + monitor, + name: `barcornertl${monitor}`, layer: 'top', anchor: ['top', 'left'], exclusivity: 'normal', @@ -112,8 +113,9 @@ export const BarCornerTopleft = (id = '') => Widget.Window({ child: RoundedCorner('topleft', { className: 'corner', }), setup: enableClickthrough, }); -export const BarCornerTopright = (id = '') => Widget.Window({ - name: `barcornertr${id}`, +export const BarCornerTopright = (monitor = 0) => Wmonitorget.Window({ + monitor, + name: `barcornertr${monitor}`, layer: 'top', anchor: ['top', 'right'], exclusivity: 'normal',