Bug 443124

Summary: Xwayland window is not repainted while selected via task switcher
Product: [Plasma] kwin Reporter: Patrick Silva <bugseforuns>
Component: wayland-genericAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED NOT A BUG    
Severity: normal    
Priority: NOR    
Version First Reported In: git master   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Patrick Silva 2021-09-29 16:57:48 UTC
STEPS TO REPRODUCE
1. play a video in youtube with Firefox running on Xwayland
2. minimize Firefox window
3. open Kate
4. press alt+tab and hold alt key

OBSERVED RESULT
Firefox window is selected but the video apparently is paused
because Firefox window is not being repainted.
I can't reproduce with Firefox running natively on Wayland.

EXPECTED RESULT


SOFTWARE/OS VERSIONS
Operating System: KDE neon Unstable Edition
KDE Plasma Version: 5.23.80
KDE Frameworks Version: 5.87.0
Qt Version: 5.15.3
Graphics Platform: Wayland

ADDITIONAL INFORMATION
I can also reproduce with Opera internet browser running on Xwayland.
Comment 1 Vlad Zahorodnii 2021-09-30 06:01:48 UTC
https://invent.kde.org/plasma/kwin/-/merge_requests/1475 may potentially fix this issue. I am unable to reproduce this issue though.
Comment 2 Patrick Silva 2021-09-30 12:01:16 UTC
(In reply to Vlad Zahorodnii from comment #1)
> https://invent.kde.org/plasma/kwin/-/merge_requests/1475 may potentially fix
> this issue. I am unable to reproduce this issue though.

I have just applied your patch to neon unstable. It fixes bug 442936, but the
bug reported here persists.
Comment 3 Vlad Zahorodnii 2021-09-30 12:57:08 UTC
Oh, I've missed the part about being minimized. It's the expected behavior. KWin will unmap minimized windows, therefore Xwayland will stop pushing new frames.

I believe Firefox will behave the same way on X11. On Wayland, it's a bit different.