mirror of
https://github.com/danbulant/dots-hyprland
synced 2026-05-24 12:22:09 +00:00
make screen corners clickthrough-able
This commit is contained in:
parent
db80d1f281
commit
eb272bb20a
1 changed files with 8 additions and 1 deletions
|
|
@ -1,6 +1,10 @@
|
||||||
|
import Cairo from 'gi://cairo?version=1.0';
|
||||||
import { Widget } from '../../imports.js';
|
import { Widget } from '../../imports.js';
|
||||||
import { RoundedCorner } from "../../lib/roundedcorner.js";
|
import { RoundedCorner } from "../../lib/roundedcorner.js";
|
||||||
|
|
||||||
|
const dummyRegion = new Cairo.Region();
|
||||||
|
const enableClickthrough = (self) => self.input_shape_combine_region(dummyRegion);
|
||||||
|
|
||||||
export const CornerTopleft = () => Widget.Window({
|
export const CornerTopleft = () => Widget.Window({
|
||||||
name: 'cornertl',
|
name: 'cornertl',
|
||||||
layer: 'top',
|
layer: 'top',
|
||||||
|
|
@ -8,6 +12,7 @@ export const CornerTopleft = () => Widget.Window({
|
||||||
exclusivity: 'normal',
|
exclusivity: 'normal',
|
||||||
visible: true,
|
visible: true,
|
||||||
child: RoundedCorner('topleft', { className: 'corner', }),
|
child: RoundedCorner('topleft', { className: 'corner', }),
|
||||||
|
setup: enableClickthrough,
|
||||||
});
|
});
|
||||||
export const CornerTopright = () => Widget.Window({
|
export const CornerTopright = () => Widget.Window({
|
||||||
name: 'cornertr',
|
name: 'cornertr',
|
||||||
|
|
@ -16,6 +21,7 @@ export const CornerTopright = () => Widget.Window({
|
||||||
exclusivity: 'normal',
|
exclusivity: 'normal',
|
||||||
visible: true,
|
visible: true,
|
||||||
child: RoundedCorner('topright', { className: 'corner', }),
|
child: RoundedCorner('topright', { className: 'corner', }),
|
||||||
|
setup: enableClickthrough,
|
||||||
});
|
});
|
||||||
export const CornerBottomleft = () => Widget.Window({
|
export const CornerBottomleft = () => Widget.Window({
|
||||||
name: 'cornerbl',
|
name: 'cornerbl',
|
||||||
|
|
@ -24,6 +30,7 @@ export const CornerBottomleft = () => Widget.Window({
|
||||||
exclusivity: 'ignore',
|
exclusivity: 'ignore',
|
||||||
visible: true,
|
visible: true,
|
||||||
child: RoundedCorner('bottomleft', { className: 'corner-black', }),
|
child: RoundedCorner('bottomleft', { className: 'corner-black', }),
|
||||||
|
setup: enableClickthrough,
|
||||||
});
|
});
|
||||||
export const CornerBottomright = () => Widget.Window({
|
export const CornerBottomright = () => Widget.Window({
|
||||||
name: 'cornerbr',
|
name: 'cornerbr',
|
||||||
|
|
@ -32,5 +39,5 @@ export const CornerBottomright = () => Widget.Window({
|
||||||
exclusivity: 'ignore',
|
exclusivity: 'ignore',
|
||||||
visible: true,
|
visible: true,
|
||||||
child: RoundedCorner('bottomright', { className: 'corner-black', }),
|
child: RoundedCorner('bottomright', { className: 'corner-black', }),
|
||||||
|
setup: enableClickthrough,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue