You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
dunstctl reload from #1350 stops dunst from working on native wayland #1434
As I mentioned in #1350 , the dunstctl reload mechanism does not seem to work correctly when running dunst through wayland native. It seems to reload fine if a notification is not visible on screen, but if a reload occurs whilst a notification is visible, no new notifications will show up for some reason. They still show in the verbose logs.
It does however work fine on X11 and XWayland.
As mentioned in the comments there, I tried the latest master with no change.
The logs after running dunst -verbosity debug, and triggering the bug are as follows: https://paste.rs/yrEGc.txt
If any more info is required please do not hesitate to let me know. I'll be happy to provide anything else.
changed the title [-]`dunstctl reload` from #1350 stops dunst from working on native waylandd[/-][+]`dunstctl reload` from #1350 stops dunst from working on native wayland[/+]on Jan 20, 2025
so no window shows up if you reload with open notification? but is the notification itself closed? maybe wayland doesn't like that we close the connection with the compositor when there are pending windows?
Yeah, that's correct. If a dunst window / notification is open at the time of reloading, it then fails to create new windows. Maybe we need to make sure all the notifications are closed first before reloading? Force all notifications to close before reload?
Can confirm this fixed the issue for me and dunstctl reload is now working correctly whilst a notification is visible on screen. I tested it by applying the patch to the latest TAG (not master) like so on NixOS:
services.dunst.package=pkgs.dunst.overrideAttrs{patches=[(pkgs.fetchpatch{# patch to fix `dunstctl reload` on native wayland dunstname="1458.patch";url="https://github.com/dunst-project/dunst/pull/1458.patch";sha256="sha256-uLY0atUjHRy7hCkAoEkWRk5kl8VvO6nygwuK5aqaG5c=";})];};
Thank you for your work :)
P.S. also working with drop-in configs (i use it for theming and it reloads them perfectly too)
Activity
[-]`dunstctl reload` from #1350 stops dunst from working on native waylandd[/-][+]`dunstctl reload` from #1350 stops dunst from working on native wayland[/+]bynect commentedon Jan 21, 2025
Probably something is wrong in the wayland deinit/init process
bynect commentedon Mar 8, 2025
so no window shows up if you reload with open notification? but is the notification itself closed? maybe wayland doesn't like that we close the connection with the compositor when there are pending windows?
fxzzi commentedon Mar 8, 2025
Yeah, that's correct. If a dunst window / notification is open at the time of reloading, it then fails to create new windows. Maybe we need to make sure all the notifications are closed first before reloading? Force all notifications to close before reload?
bynect commentedon Mar 8, 2025
I'm not an expert in wayland but I'll look into it. Hopefully its not some obscure protocol thing
wayland: improve deinit and init
wayland: improve deinit and init
pslldq commentedon Mar 17, 2025
@fxzzi I've created a fix for this issue in #1458 . Feel free to check, if it also fixes the issue on your side 😏
bynect commentedon Mar 17, 2025
Thank you so much for looking into it 👍
fxzzi commentedon Mar 20, 2025
Can confirm this fixed the issue for me and
dunstctl reloadis now working correctly whilst a notification is visible on screen. I tested it by applying the patch to the latest TAG (not master) like so on NixOS:Thank you for your work :)
P.S. also working with drop-in configs (i use it for theming and it reloads them perfectly too)
bynect commentedon Mar 20, 2025
thanks fxzzi for the feedback, I will merge the pr shortly