<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>504350</bug_id>
          
          <creation_ts>2025-05-16 17:42:04 +0000</creation_ts>
          <short_desc>Plasma notifies about unread notifications even when there is no unread notification</short_desc>
          <delta_ts>2025-08-22 21:23:02 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Plasma</classification>
          <product>plasmashell</product>
          <component>Notifications</component>
          <version>6.3.90</version>
          <rep_platform>Arch Linux</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>regression</keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.0</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Patrick Silva">bugseforuns</reporter>
          <assigned_to name="Plasma Bugs List">plasma-bugs-null</assigned_to>
          <cc>akselmo</cc>
    
    <cc>kde</cc>
    
    <cc>kristen</cc>
    
    <cc>me</cc>
    
    <cc>nate</cc>
    
    <cc>yaomtc</cc>
    
    <cc>zxvb12z</cc>
          
          <cf_commitlink>https://invent.kde.org/plasma/plasma-workspace/-/commit/dd37268622d05fe9e0adf09de6ddfe15c820259b</cf_commitlink>
          <cf_versionfixedin>6.4.0</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2424749</commentid>
    <comment_count>0</comment_count>
    <who name="Patrick Silva">bugseforuns</who>
    <bug_when>2025-05-16 17:42:04 +0000</bug_when>
    <thetext>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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2424954</commentid>
    <comment_count>1</comment_count>
    <who name="Iyán M. V.">me</who>
    <bug_when>2025-05-17 11:51:00 +0000</bug_when>
    <thetext>*** Bug 504413 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2425453</commentid>
    <comment_count>2</comment_count>
    <who name="Akseli Lahtinen">akselmo</who>
    <bug_when>2025-05-19 12:46:21 +0000</bug_when>
    <thetext>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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2425465</commentid>
    <comment_count>3</comment_count>
    <who name="Bug Janitor Service">bug-janitor</who>
    <bug_when>2025-05-19 13:47:28 +0000</bug_when>
    <thetext>A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/5495</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2425510</commentid>
    <comment_count>4</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2025-05-19 14:56:12 +0000</bug_when>
    <thetext>Notably, with today&apos;s git master (and *not* Akseli&apos;s patch), I can&apos;t reproduce this using the steps provided.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2425632</commentid>
    <comment_count>5</comment_count>
    <who name="Kristen McWilliam">kristen</who>
    <bug_when>2025-05-19 17:22:46 +0000</bug_when>
    <thetext>(In reply to Nate Graham from comment #4)
&gt; Notably, with today&apos;s git master (and *not* Akseli&apos;s patch), I can&apos;t
&gt; reproduce this using the steps provided.

Same here, I can&apos;t seem to reproduce on either stable or git master.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2425979</commentid>
    <comment_count>6</comment_count>
    <who name="Marco Martin">notmart</who>
    <bug_when>2025-05-20 12:50:18 +0000</bug_when>
    <thetext>Git commit c5eda9ab9de64a5fd9225e4c9718422f72d10672 by Marco Martin, on behalf of Akseli Lahtinen.
Committed on 20/05/2025 at 10:39.
Pushed by akselmo into branch &apos;master&apos;.

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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2426007</commentid>
    <comment_count>7</comment_count>
    <who name="Akseli Lahtinen">akselmo</who>
    <bug_when>2025-05-20 13:52:33 +0000</bug_when>
    <thetext>Git commit dd37268622d05fe9e0adf09de6ddfe15c820259b by Akseli Lahtinen.
Committed on 20/05/2025 at 13:27.
Pushed by akselmo into branch &apos;Plasma/6.4&apos;.

🍒 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 &lt;akselmo@akselmo.dev&gt;

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

https://invent.kde.org/plasma/plasma-workspace/-/commit/dd37268622d05fe9e0adf09de6ddfe15c820259b</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2426082</commentid>
    <comment_count>8</comment_count>
    <who name="Iyán M. V.">me</who>
    <bug_when>2025-05-20 17:44:48 +0000</bug_when>
    <thetext>The patch works for me.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2426095</commentid>
    <comment_count>9</comment_count>
    <who name="Iyán M. V.">me</who>
    <bug_when>2025-05-20 18:17:52 +0000</bug_when>
    <thetext>Actually, no... the problem remains for me. For some reason, I could not reproduce for a while, but now I&apos;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 &quot;Do not disturb mode&quot; and disable it. It triggers the same notification.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2426100</commentid>
    <comment_count>10</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2025-05-20 18:21:31 +0000</bug_when>
    <thetext>Can you see if https://invent.kde.org/plasma/plasma-workspace/-/commit/a0f092e6867cbf0cdf2bd507269474a05bb093e2 fixes the remaining cases of this?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2426104</commentid>
    <comment_count>11</comment_count>
    <who name="Iyán M. V.">me</who>
    <bug_when>2025-05-20 18:32:11 +0000</bug_when>
    <thetext>(In reply to Nate Graham from comment #10)
&gt; Can you see if
&gt; https://invent.kde.org/plasma/plasma-workspace/-/commit/
&gt; 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&apos;t have time.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2426312</commentid>
    <comment_count>12</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2025-05-21 13:27:05 +0000</bug_when>
    <thetext>Thanks, and let us know how it goes!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2429023</commentid>
    <comment_count>13</comment_count>
    <who name="zxvb12z">zxvb12z</who>
    <bug_when>2025-05-30 09:59:33 +0000</bug_when>
    <thetext>Seems fixed in Plasma 6.3.91
I can’t reproduce the problem anymore, thank you</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2449671</commentid>
    <comment_count>14</comment_count>
    <who name="Yao Mitachi">yaomtc</who>
    <bug_when>2025-08-22 21:09:41 +0000</bug_when>
    <thetext>I&apos;ve been seeing this lately in 6.4.4</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2449677</commentid>
    <comment_count>15</comment_count>
    <who name="Yao Mitachi">yaomtc</who>
    <bug_when>2025-08-22 21:23:02 +0000</bug_when>
    <thetext>Nvm I thought because clicking on it didn&apos;t do anything, that it was broken, but I&apos;m pretty sure those were from emails.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>