feat(ags): add click_through for corners
All checks were successful
Discord / discord commits (push) Has been skipped
All checks were successful
Discord / discord commits (push) Has been skipped
This commit is contained in:
parent
74e6f417cd
commit
b51c306edd
4 changed files with 14 additions and 9 deletions
|
@ -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'),
|
||||
});
|
||||
|
||||
|
|
|
@ -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(),
|
||||
|
|
|
@ -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;
|
||||
`;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
BIN
flake.lock
BIN
flake.lock
Binary file not shown.
Loading…
Reference in a new issue