aboutsummaryrefslogtreecommitdiff
path: root/render.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2024-07-23 09:53:30 +0000
committerDaniel Eklöf <daniel@ekloef.se>2024-07-23 09:53:30 +0000
commitb3108e1ad23387327d6cc7ebfdb20307878dd5c3 (patch)
tree650525b6f06eff41a62a3895a4580a699a374be5 /render.c
parentosc: kitty notifications: updated support for icons (diff)
notify: separate active notifications from unfinished kitty notifications
This fixes an issue where it wasn't possible to trigger multiple notifications with the same kitty notification ID. This is something that works in kitty, and there's no reason why it shouldn't work. The issue was that we track stdout, and the notification helper's PID in the notification struct. Thus, when a notification is being displayed, we can't re-use the same notification struct instance for another notification. This patch fixes this by adding a new notification list, 'active_notifications'. Whenever we detect that we need to track the helper (notification want's to either focus the window on activation, or send an event to the application), we add a copy of the notification to the 'active' list. The notification can then be removed from the 'kitty' list, allowing kitty notifications to re-use the same ID over and over again, even if old notifications are still being displayed.
Diffstat (limited to 'render.c')
0 files changed, 0 insertions, 0 deletions