Bug 504350 - Plasma notifies about unread notifications even when there is no unread notification
Summary: Plasma notifies about unread notifications even when there is no unread notif...
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Notifications (other bugs)
Version First Reported In: 6.3.90
Platform: Arch Linux Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords: regression
: 504413 (view as bug list)
Depends on:
Blocks:
 
Reported: 2025-05-16 17:42 UTC by Patrick Silva
Modified: 2025-05-30 12:12 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In: 6.4.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Silva 2025-05-16 17:42:04 UTC
STEPS TO REPRODUCE
1. play a video in full screen mode
2. while the video plays, take a screenshot with Spectacle by pressing shift+printscreen
3. wait 10 seconds and then leave the full screen video (Plasma notifies about unread notifications)
4. click on the notification applet in the system tray - now the applet hides itself, indicating that there is no unread notification
5. play a video in full screen again
6. leave the full screen video

OBSERVED RESULT
Plasma unexpectedly notifies about nonexistent unread notifications

EXPECTED RESULT
no notification

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.3.90
KDE Frameworks Version: 6.14.0
Qt Version: 6.9.0
Graphics Platform: Wayland
Comment 1 Iyán M. V. 2025-05-17 11:51:00 UTC
*** Bug 504413 has been marked as a duplicate of this bug. ***
Comment 2 Akseli Lahtinen 2025-05-19 12:46:21 UTC
I can reproduce it. Seems the notification manager thinks that the already read notifications are still unread.

Operating System: Fedora Linux 42
KDE Plasma Version: 6.3.90
KDE Frameworks Version: 6.15.0
Qt Version: 6.9.0
Kernel Version: 6.14.6-300.fc42.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 3600 6-Core Processor
Memory: 16 GiB of RAM (15.5 GiB usable)
Graphics Processor: AMD Radeon RX 6600
Comment 3 Bug Janitor Service 2025-05-19 13:47:28 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/5495
Comment 4 Nate Graham 2025-05-19 14:56:12 UTC
Notably, with today's git master (and *not* Akseli's patch), I can't reproduce this using the steps provided.
Comment 5 Kristen McWilliam 2025-05-19 17:22:46 UTC
(In reply to Nate Graham from comment #4)
> Notably, with today's git master (and *not* Akseli's patch), I can't
> reproduce this using the steps provided.

Same here, I can't seem to reproduce on either stable or git master.
Comment 6 Marco Martin 2025-05-20 12:50:18 UTC
Git commit c5eda9ab9de64a5fd9225e4c9718422f72d10672 by Marco Martin, on behalf of Akseli Lahtinen.
Committed on 20/05/2025 at 10:39.
Pushed by akselmo into branch 'master'.

Notifications: Set notifications to read when full representation is opened

When full representation is set expanded, we should set all the items as
read,
since that is what the user is expecting to do when clicking on the
notification icon and it resets to normal.

If notifs are not set as read, then notifs that appeared during
Do-not-disturb will keep notifying the user, even if user has explicitly
looked at the items in the widget.
FIXED-IN: 6.4

M  +4    -0    applets/notifications/package/contents/ui/FullRepresentation.qml

https://invent.kde.org/plasma/plasma-workspace/-/commit/c5eda9ab9de64a5fd9225e4c9718422f72d10672
Comment 7 Akseli Lahtinen 2025-05-20 13:52:33 UTC
Git commit dd37268622d05fe9e0adf09de6ddfe15c820259b by Akseli Lahtinen.
Committed on 20/05/2025 at 13:27.
Pushed by akselmo into branch 'Plasma/6.4'.

🍒 Notifications: Set notifications to read when full representation is opened

When full representation is set expanded, we should set all the items as
read,
since that is what the user is expecting to do when clicking on the
notification icon and it resets to normal.

If notifs are not set as read, then notifs that appeared during
Do-not-disturb will keep notifying the user, even if user has explicitly
looked at the items in the widget.
FIXED-IN: 6.4

(cherry picked from commit c5eda9ab9de64a5fd9225e4c9718422f72d10672)

Co-authored-by: Akseli Lahtinen <akselmo@akselmo.dev>

M  +4    -0    applets/notifications/package/contents/ui/FullRepresentation.qml

https://invent.kde.org/plasma/plasma-workspace/-/commit/dd37268622d05fe9e0adf09de6ddfe15c820259b
Comment 8 Iyán M. V. 2025-05-20 17:44:48 UTC
The patch works for me.
Comment 9 Iyán M. V. 2025-05-20 18:17:52 UTC
Actually, no... the problem remains for me. For some reason, I could not reproduce for a while, but now I'm getting back those notifications when entering fullscreen mode, or when changing from one virtual desktop to another while an app is in fullscreen mode.

I found another way to trigger the issue. Just manually enable "Do not disturb mode" and disable it. It triggers the same notification.
Comment 10 Nate Graham 2025-05-20 18:21:31 UTC
Can you see if https://invent.kde.org/plasma/plasma-workspace/-/commit/a0f092e6867cbf0cdf2bd507269474a05bb093e2 fixes the remaining cases of this?
Comment 11 Iyán M. V. 2025-05-20 18:32:11 UTC
(In reply to Nate Graham from comment #10)
> Can you see if
> https://invent.kde.org/plasma/plasma-workspace/-/commit/
> a0f092e6867cbf0cdf2bd507269474a05bb093e2 fixes the remaining cases of this?

Sorry, I cannot apply the patch directly on top of 6.3.90. Perhaps I can try tomorrow to compile the master branch, now I don't have time.
Comment 12 Nate Graham 2025-05-21 13:27:05 UTC
Thanks, and let us know how it goes!
Comment 13 zxvb12z 2025-05-30 09:59:33 UTC
Seems fixed in Plasma 6.3.91
I can’t reproduce the problem anymore, thank you