Bug 507108 - Spectacle notification disappears despite having hovered it, popup timer doesn't reset
Summary: Spectacle notification disappears despite having hovered it, popup timer does...
Status: CONFIRMED
Alias: None
Product: Spectacle
Classification: Applications
Component: General (other bugs)
Version First Reported In: 6.4.3
Platform: Arch Linux Linux
: NOR minor
Target Milestone: ---
Assignee: Noah Davis
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-07-16 10:08 UTC by Ángel Navarro
Modified: 2025-08-28 14:37 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
Timeout bar resetting to full but the notification disappears right away (70.62 KB, video/mp4)
2025-07-16 10:08 UTC, Ángel Navarro
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ángel Navarro 2025-07-16 10:08:42 UTC
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
Comment 1 Filip 2025-07-18 11:03:38 UTC
I can reproduce this with spectacle, but other notifications work correctly so I'll move this to Spectacle team.
Comment 2 Patrick Silva 2025-08-16 15:55:56 UTC
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
Comment 3 Nate Graham 2025-08-26 21:59:23 UTC
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.
Comment 4 Ángel Navarro 2025-08-26 23:53:56 UTC
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.
Comment 5 Noah Davis 2025-08-28 14:37:54 UTC
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.