From a609bdc61bb9d74b3f20fbcc02b2ccc30a923042 Mon Sep 17 00:00:00 2001 From: matt1432 Date: Thu, 28 Dec 2023 23:20:03 -0500 Subject: [PATCH] fix(ags notif): make first notif appear --- devices/binto/config/ags/js/notifications/main.js | 9 ++++----- devices/wim/config/ags/js/notifications/main.js | 9 +++------ devices/wim/config/ags/js/notifications/popup.js | 2 ++ 3 files changed, 9 insertions(+), 11 deletions(-) diff --git a/devices/binto/config/ags/js/notifications/main.js b/devices/binto/config/ags/js/notifications/main.js index 7090a251..35b57748 100644 --- a/devices/binto/config/ags/js/notifications/main.js +++ b/devices/binto/config/ags/js/notifications/main.js @@ -1,15 +1,14 @@ -import PopUpsWidget from 'file:///home/matt/.nix/devices/wim/config/ags/js/notifications/popup.js'; +import { Window } from 'resource:///com/github/Aylur/ags/widget.js'; + import NotifCenterWidget from 'file:///home/matt/.nix/devices/wim/config/ags/js/notifications/center.js'; +import PopUpsWidget from 'file:///home/matt/.nix/devices/wim/config/ags/js/notifications/popup.js'; import PopupWindow from 'file:///home/matt/.nix/devices/wim/config/ags/js/misc/popup.js'; -export const NotifPopups = () => PopupWindow({ +export const NotifPopups = () => Window({ name: 'notifications', anchor: ['bottom', 'left'], - visible: true, - transition: 'none', - close_on_unfocus: 'stay', monitor: 1, child: PopUpsWidget(), diff --git a/devices/wim/config/ags/js/notifications/main.js b/devices/wim/config/ags/js/notifications/main.js index 1528c4be..e77ac7dc 100644 --- a/devices/wim/config/ags/js/notifications/main.js +++ b/devices/wim/config/ags/js/notifications/main.js @@ -1,15 +1,12 @@ -import PopUpsWidget from './popup.js'; +import { Window } from 'resource:///com/github/Aylur/ags/widget.js'; import NotifCenterWidget from './center.js'; +import PopUpsWidget from './popup.js'; import PopupWindow from '../misc/popup.js'; -export const NotifPopups = () => PopupWindow({ +export const NotifPopups = () => Window({ name: 'notifications', anchor: ['top', 'left'], - visible: true, - transition: 'none', - close_on_unfocus: 'stay', - child: PopUpsWidget(), }); diff --git a/devices/wim/config/ags/js/notifications/popup.js b/devices/wim/config/ags/js/notifications/popup.js index 2395bed5..e7bdcfd8 100644 --- a/devices/wim/config/ags/js/notifications/popup.js +++ b/devices/wim/config/ags/js/notifications/popup.js @@ -12,6 +12,8 @@ const DELAY = 2000; export default () => Box({ vertical: true, + // Needed so it occupies space at the start + css: 'padding: 1px;', setup: (self) => { /** @param {number} id */