In a bash shell, run:
r=0; while true ; do r=$(dunstify --replace=$r --printid "Hi $r - $RANDOM") ; sleep 1 ; done
Very often there is a visible flicker when the notification is replaced.
Would it be possible to eliminate it?
Absolutely no flicker here. What WM are you using?
i3-gaps. Can still see the flicker both on my desktop and laptop, with or without compositing (Compton).
I can verify this. Using i3 with compton.
Same here, i3, different kind of flickering with or without compton. It happens with the volume notification from clementine, if you scroll the volume up/down fast enough. The flickering is slightly different with and without compton (I think..)
. With compton, sometimes the notification completely disappears until I move it to my other monitor. I never bothered reporting it because I have no idea where to start investigating this. :S
EDIT: just to clarify, for me it is also reproducible with @CyberShadow's dunstify reproducer (again both with and without compton).
I can reproduce the flicker with the above script. i3-gaps no compton.
Odd, I can't reproduce this on i3wm, neither with nvidia nor intel (just in case video card made any difference).
Can you quickly try with i3wm just to narrow down if it's i3-gaps-specific or not?
I have an amd video card using the opensource drivers.
I can confirm that it also happens on i3wm with compton enabled, strangely enough it happens much less frequently if at all without compton.
I have bspwm with compton enabled and the graphic card is intel, and I got the flicker too
The notifications of the rhythmbox music player flicker as well ( i also use i3 gaps with compton).
After running dunst with -print i noticed that rhythmbox tries to print its notification multiple times for some reason, so i guess dunst flickers on i3/compton when it refreshes an already existing notification.
Setting glx-use-copysubbuffermesa to true fixed the compton flicker for me (only flickers slightly if I spam it like a maniac).
@josduj Thank you for the solution, but there are still two problems.
Have the same issue, i3-gaps with compton.
I guess, I've got the issue:
So there is a full x_win_show and x_win_hide call in between replacing the notification. I'm not that experienced with X, but I'd guess this is the problem.
If some of you could verify, that the fix proposed in #391 works, would be great.
@bebehei Yes, it works for me! Can't speak about the patch but it does completely remove the flicker, both in the repro command above and my real use-case (showing current volume when adjusting it).