From ac93fa358e6e258bfbe14c87a3804c68bbeb9fda Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Tue, 16 Apr 2024 17:46:43 +0700 Subject: [PATCH] fakeScreenRounding=false -> corners when not fullscreen (#248) --- .config/ags/config.js | 12 ++++++------ .config/ags/modules/screencorners/main.js | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.config/ags/config.js b/.config/ags/config.js index 729f47331..d024560e2 100644 --- a/.config/ags/config.js +++ b/.config/ags/config.js @@ -56,13 +56,13 @@ const Windows = () => [ Session(), // forMonitors(Bar), ...(userOptions.appearance.fakeScreenRounding ? [ - forMonitors((id) => Corner(id, 'top left')), - forMonitors((id) => Corner(id, 'top right')), - forMonitors((id) => Corner(id, 'bottom left')), - forMonitors((id) => Corner(id, 'bottom right')), - forMonitors(BarCornerTopleft), - forMonitors(BarCornerTopright), + forMonitors((id) => Corner(id, 'top left', true)), + forMonitors((id) => Corner(id, 'top right', true)), ] : []), + forMonitors((id) => Corner(id, 'bottom left', userOptions.appearance.fakeScreenRounding)), + forMonitors((id) => Corner(id, 'bottom right', userOptions.appearance.fakeScreenRounding)), + forMonitors(BarCornerTopleft), + forMonitors(BarCornerTopright), forMonitors(Click2Close), ]; diff --git a/.config/ags/modules/screencorners/main.js b/.config/ags/modules/screencorners/main.js index 46464c491..fb5899e39 100644 --- a/.config/ags/modules/screencorners/main.js +++ b/.config/ags/modules/screencorners/main.js @@ -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,