From 460f00ecabdbc986d9a4351fc9266aef6e880db0 Mon Sep 17 00:00:00 2001
From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>
Date: Mon, 31 Mar 2025 23:50:11 +1100
Subject: screencorners: enable clickthrough

---
 src/modules/screencorners.tsx | 4 ++++
 1 file changed, 4 insertions(+)

(limited to 'src/modules/screencorners.tsx')

diff --git a/src/modules/screencorners.tsx b/src/modules/screencorners.tsx
index 63e7221..d160349 100644
--- a/src/modules/screencorners.tsx
+++ b/src/modules/screencorners.tsx
@@ -3,6 +3,7 @@ import ScreenCorner from "@/widgets/screencorner";
 import { bind } from "astal/binding";
 import { Astal } from "astal/gtk3";
 import { bar } from "config";
+import Cairo from "gi://cairo";
 
 export default ({ monitor }: { monitor: Monitor }) => (
     <window
@@ -14,6 +15,9 @@ export default ({ monitor }: { monitor: Monitor }) => (
                 Astal.WindowAnchor.RIGHT |
                 (v ? Astal.WindowAnchor.TOP : Astal.WindowAnchor.LEFT)
         )}
+        setup={self =>
+            self.connect("size-allocate", () => self.get_window()?.input_shape_combine_region(new Cairo.Region(), 0, 0))
+        }
     >
         <box vertical={bind(bar.vertical)}>
             <ScreenCorner place={bind(bar.vertical).as(v => (v ? "topright" : "bottomleft"))} />
-- 
cgit v1.2.3-freya

