Created attachment 183271 [details] Timeout bar resetting to full but the notification disappears right away SUMMARY Hovering the notification does not reset its "vanish" timer, the timeout bar resets to full but the notification disappears right after anyway STEPS TO REPRODUCE 1. Trigger a notification (eg take a sreenshot) 2. Wait for the timeout bar to almost go to zero 3. Hover the notification 4. Move the cursor away OBSERVED RESULT The notification timer stops instead of restarting but the bar shows otherwise EXPECTED RESULT Either: - The bar should stop diminishing rather than go full again - The popup timer should restart to make the notification show up for longer SOFTWARE/OS VERSIONS Windows: macOS: (available in the Info Center app, or by running `kinfo` in a terminal window) Linux/KDE Plasma: Arch Linux KDE Plasma Version: 6.5 Dev (6.4.80 git master) KDE Frameworks Version: 25.07.80 Qt Version: 6.10.0 Beta ADDITIONAL INFORMATION
I can reproduce this with spectacle, but other notifications work correctly so I'll move this to Spectacle team.
I have just noticed this bug with notifications from Spectacle on my system. Operating System: Arch Linux KDE Plasma Version: 6.4.4 KDE Frameworks Version: 6.17.0 Qt Version: 6.9.1 Graphics Platform: Wayland
Apps are allowed to remove their own notifications, and that's what I suspect is happening here. If so, it's probably unnecessary in this case.
I would agree with you if this happened with other apps but it turns out that only Spectacle, a KDE app,mhas this bug, as @filip pointed out. Other apps notification timers reset fine, it's just Spectacle that doesn't reset.
I suppose this is because Spectacle has to use a QTimer to stop the notification since there is no API to set the timeout of a KNotification object. We also kill the KNotification object with a QTimer to prevent it from making Spectacle live forever with no UI because the KNotification objects aren't always destroyed when we need them to be due to a behavior change. We'll also have to check if the duration used for the close timer animation is actually based on the notification's timeout duration.