screencorners: enable clickthrough
This commit is contained in:
parent
5a52b5887c
commit
460f00ecab
1 changed files with 4 additions and 0 deletions
|
|
@ -3,6 +3,7 @@ import ScreenCorner from "@/widgets/screencorner";
|
||||||
import { bind } from "astal/binding";
|
import { bind } from "astal/binding";
|
||||||
import { Astal } from "astal/gtk3";
|
import { Astal } from "astal/gtk3";
|
||||||
import { bar } from "config";
|
import { bar } from "config";
|
||||||
|
import Cairo from "gi://cairo";
|
||||||
|
|
||||||
export default ({ monitor }: { monitor: Monitor }) => (
|
export default ({ monitor }: { monitor: Monitor }) => (
|
||||||
<window
|
<window
|
||||||
|
|
@ -14,6 +15,9 @@ export default ({ monitor }: { monitor: Monitor }) => (
|
||||||
Astal.WindowAnchor.RIGHT |
|
Astal.WindowAnchor.RIGHT |
|
||||||
(v ? Astal.WindowAnchor.TOP : Astal.WindowAnchor.LEFT)
|
(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)}>
|
<box vertical={bind(bar.vertical)}>
|
||||||
<ScreenCorner place={bind(bar.vertical).as(v => (v ? "topright" : "bottomleft"))} />
|
<ScreenCorner place={bind(bar.vertical).as(v => (v ? "topright" : "bottomleft"))} />
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue