Bug 481100 - Clicking on "Show Desktop" twice with the "Eye on screen" desktop effect enabled causes artifacts sometimes
Summary: Clicking on "Show Desktop" twice with the "Eye on screen" desktop effect enab...
Status: RESOLVED FIXED
Alias: None
Product: kwin
Classification: Plasma
Component: effects-various (other bugs)
Version First Reported In: 6.1.2
Platform: Arch Linux Linux
: HI minor
Target Milestone: ---
Assignee: Sudip Datta
URL:
Keywords: accessibility, qt6
: 481107 490135 504903 506195 522685 (view as bug list)
Depends on:
Blocks:
 
Reported: 2024-02-08 23:55 UTC by Yusef Aslam
Modified: 2026-09-24 16:34 UTC (History)
10 users (show)

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


Attachments
THE_OBSERVED_BEHAVIOUR (519.91 KB, image/png)
2024-02-08 23:55 UTC, Yusef Aslam
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Yusef Aslam 2024-02-08 23:55:06 UTC
Created attachment 165684 [details]
THE_OBSERVED_BEHAVIOUR

SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***


STEPS TO REPRODUCE
1. Go to Settings -> Desktop Effects -> Eye on Screen and enable it
2. Click on "Show Desktop" twice
3. Observe artifacts

OBSERVED RESULT
Bar and windows are not in the correct place while the animation takes place on the second click, bar and windows do go into correct place afterwards, just the animation is wrong.

EXPECTED RESULT
Bar and windows being in the correct place during the "Show Desktop" animation.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Yusef Aslam 2024-02-08 23:59:35 UTC
Linux/KDE Plasma: Arch Linux (KDE 5.93.0 / KDE PLASMA 6.0 RC2)
(available in About System)
KDE Plasma Version: 5.93.0
KDE Frameworks Version: 5.249.0
Qt Version: 6.7.0
Graphics Platform: Wayland
Comment 2 Patrick Silva 2024-02-09 10:40:33 UTC
*** Bug 481107 has been marked as a duplicate of this bug. ***
Comment 3 cwo 2024-07-12 06:38:22 UTC
*** Bug 490135 has been marked as a duplicate of this bug. ***
Comment 4 David Edmundson 2025-05-28 09:01:08 UTC
*** Bug 504903 has been marked as a duplicate of this bug. ***
Comment 5 madness742 2025-06-14 17:11:09 UTC
I can confirm the same behaviour.

Operating System: Fedora Linux 42
KDE Plasma Version: 6.3.5
KDE Frameworks Version: 6.14.0
Qt Version: 6.9.1
Graphics Platform: Wayland
Comment 6 jot.s.gam 2025-07-11 18:11:01 UTC
*** Bug 506195 has been marked as a duplicate of this bug. ***
Comment 7 Sudip Datta 2026-06-04 12:14:24 UTC
I have found the root cause. In eye on screen animation there is a delay when apps returning to desktop animation is playing. This delay is causing animation to start late while other animation(probably app opening animation) starts early. This is causing conflict and creating weird visual artifacts. 

I have removed the delay and tested locally the animation is working fine without any artifacts.

I am submitting a Merge Request on KDE Invent to link against this ticket.
Comment 8 Bug Janitor Service 2026-06-04 12:26:24 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/9331
Comment 9 Vlad Zahorodnii 2026-09-01 16:16:35 UTC
Git commit 54312dffaf42eb7103f5de56cc2b8f55705cd40d by Vlad Zahorodnii, on behalf of Sudip Datta.
Committed on 01/09/2026 at 16:16.
Pushed by vladz into branch 'master'.

plugins/eyeonscreen: Fix return animation

The delay in the animation was causing the artifacts when peek at Desktop
is clicked second time. Basically this animation was starting late and
other animations were interferring in this animation.

Removed the delay in the return animation. This forces background windows
to restore concurrently alongside newly spawned layouts, entirely
eliminating the visual clash.

M  +0    -1    src/plugins/eyeonscreen/package/contents/code/main.js

https://invent.kde.org/plasma/kwin/-/commit/54312dffaf42eb7103f5de56cc2b8f55705cd40d
Comment 10 Vlad Zahorodnii 2026-09-01 16:53:34 UTC
Git commit b5b741cad151ae80aad11fe270b9b1bd9e3c0a73 by Vlad Zahorodnii.
Committed on 01/09/2026 at 16:53.
Pushed by vladz into branch 'Plasma/6.7'.

plugins/eyeonscreen: Fix return animation

The delay in the animation was causing the artifacts when peek at Desktop
is clicked second time. Basically this animation was starting late and
other animations were interferring in this animation.

Removed the delay in the return animation. This forces background windows
to restore concurrently alongside newly spawned layouts, entirely
eliminating the visual clash.


(cherry picked from commit 54312dffaf42eb7103f5de56cc2b8f55705cd40d)

Co-authored-by: Sudip Datta <sudipdatta2002@gmail.com>

M  +0    -1    src/plugins/eyeonscreen/package/contents/code/main.js

https://invent.kde.org/plasma/kwin/-/commit/b5b741cad151ae80aad11fe270b9b1bd9e3c0a73
Comment 11 jot.s.gam 2026-09-24 16:02:00 UTC
*** Bug 522685 has been marked as a duplicate of this bug. ***