fakeScreenRounding=false -> corners when not fullscreen (#248)

This commit is contained in:
end-4
2024-04-16 17:46:43 +07:00
parent 6f39a98a2f
commit 4da0d41ee8
2 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -2,12 +2,12 @@ import Widget from 'resource:///com/github/Aylur/ags/widget.js';
import { enableClickthrough } from "../.widgetutils/clickthrough.js";
import { RoundedCorner } from "../.commonwidgets/cairo_roundedcorner.js";
export default (monitor = 0, where = 'bottom left') => {
export default (monitor = 0, where = 'bottom left', useOverlayLayer = true) => {
const positionString = where.replace(/\s/, ""); // remove space
return Widget.Window({
monitor,
name: `corner${positionString}${monitor}`,
layer: 'overlay',
layer: useOverlayLayer ? 'overlay' : 'top',
anchor: where.split(' '),
exclusivity: 'ignore',
visible: true,