From b51c306eddb588ea0c6f4d9c91fba08a86c220a6 Mon Sep 17 00:00:00 2001 From: matt1432 Date: Mon, 15 Jan 2024 09:20:41 -0500 Subject: [PATCH] feat(ags): add click_through for corners --- devices/wim/config/ags/ts/corners/main.ts | 4 ++++ devices/wim/config/ags/ts/main.ts | 2 -- devices/wim/config/ags/ts/overview/main.ts | 17 ++++++++++------- flake.lock | 6 +++--- 4 files changed, 17 insertions(+), 12 deletions(-) diff --git a/devices/wim/config/ags/ts/corners/main.ts b/devices/wim/config/ags/ts/corners/main.ts index dbe93681..53cc0382 100644 --- a/devices/wim/config/ags/ts/corners/main.ts +++ b/devices/wim/config/ags/ts/corners/main.ts @@ -9,6 +9,7 @@ const TopLeft = () => Window({ exclusivity: 'ignore', anchor: ['top', 'left'], visible: true, + click_through: true, child: RoundedCorner('topleft'), }); @@ -18,6 +19,7 @@ const TopRight = () => Window({ exclusivity: 'ignore', anchor: ['top', 'right'], visible: true, + click_through: true, child: RoundedCorner('topright'), }); @@ -27,6 +29,7 @@ const BottomLeft = () => Window({ exclusivity: 'ignore', anchor: ['bottom', 'left'], visible: true, + click_through: true, child: RoundedCorner('bottomleft'), }); @@ -36,6 +39,7 @@ const BottomRight = () => Window({ exclusivity: 'ignore', anchor: ['bottom', 'right'], visible: true, + click_through: true, child: RoundedCorner('bottomright'), }); diff --git a/devices/wim/config/ags/ts/main.ts b/devices/wim/config/ags/ts/main.ts index 082dd063..69245624 100644 --- a/devices/wim/config/ags/ts/main.ts +++ b/devices/wim/config/ags/ts/main.ts @@ -30,8 +30,6 @@ export default { 'quick-settings': closeWinDelay, }, windows: [ - // Put the corners first so they - // don't block the cursor on the bar ...Corners(), AppLauncher(), diff --git a/devices/wim/config/ags/ts/overview/main.ts b/devices/wim/config/ags/ts/overview/main.ts index cd173950..7fbd61c9 100644 --- a/devices/wim/config/ags/ts/overview/main.ts +++ b/devices/wim/config/ags/ts/overview/main.ts @@ -58,7 +58,7 @@ export const Overview = () => { return; } - self?.attribute.update(); + self.attribute.update(); }); }, }); @@ -128,17 +128,20 @@ export default () => { if (isOpen) { self.child = Overview(); self.show_all(); + (self.child as AgsOverlay) .attribute.get_child().attribute.update(); } else { (self.child as AgsOverlay).attribute.closing = true; - ((self.child as AgsOverlay).child as AgsBox).css = ` - min-height: 1px; - min-width: 1px; - transition: all - ${transition_duration - 10}ms ease; - `; + + ((self.child as AgsOverlay) + .child as AgsBox).css = ` + min-height: 1px; + min-width: 1px; + transition: all + ${transition_duration - 10}ms ease; + `; } } }); diff --git a/flake.lock b/flake.lock index 19c8e86a..fcc35246 100644 --- a/flake.lock +++ b/flake.lock @@ -7,11 +7,11 @@ ] }, "locked": { - "lastModified": 1705273764, - "narHash": "sha256-qWHrCYk7IZhXhfkOESazhRwpSH85yJvOrOjBfmxE0QI=", + "lastModified": 1705327000, + "narHash": "sha256-hygjpqpNP36NELEbeq+mOc+2F/L2PUAamOseBBIvNDQ=", "owner": "Aylur", "repo": "ags", - "rev": "3fce4efcc25c981c552eb58108d01d64e7033e14", + "rev": "106b4f30ad2e7249c7b2c4d255669d78ae297213", "type": "github" }, "original": {