Bug 463374

Summary: Window refreshes only when re-focusing
Product: [Plasma] kwin Reporter: Meteora Osterreich <semaraputraputugede>
Component: wayland-genericAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: normal CC: nate, xaver.hugl
Priority: NOR    
Version First Reported In: 5.26.4   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Meteora Osterreich 2022-12-23 04:08:45 UTC
SUMMARY
This happens when doing OBS Screen record in wayland, and happens in every window. the symptoms is more like on this bug report https://bugs.kde.org/show_bug.cgi?id=428499, this resulting OBS will see paused window in its preview when the captured window is not focused

On Firefox to fix this problem is by set widget.wayland_vsync.enabled to false

Video link: https://youtu.be/M5S5c_NbiIM
also in attachment

STEPS TO REPRODUCE
1. Open a window in example VLC, play a video (in virtual desktop 1)
2. Open OBS and Add Window Capture (in virtual desktop 2)
3. Select Window (select VLC)
4. Record
5. Switch virtual desktop 2 to lose focus window of VLC
6. and switch back to virtual desktop 1
6. the obs preview will see screen pause in VLC when switch to virtual desktop 2 while recording causing unable to record window while VLC in virtual desktop 1 window lose focus

OBSERVED RESULT
no paused when capture window lose focus in OBS

EXPECTED RESULT
window not refreshed on OBS when recording

Operating System: Manjaro Linux
KDE Plasma Version: 5.26.4
KDE Frameworks Version: 5.100.0
Qt Version: 5.15.7
Kernel Version: 6.0.11-1-MANJARO (64-bit)
Graphics Platform: Wayland
Processors: 4 × Intel® Core™ i3-3120M CPU @ 2.50GHz
Memory: 9.6 GiB of RAM
Graphics Processor: Mesa Intel® HD Graphics 4000
Manufacturer: Sony Corporation
Product Name: SVE14132CVW
System Version: C10GPC0F

ADDITIONAL INFORMATION
Not only happen in OBS but also when screensharing in wayland

sorry for my bad english
Comment 1 Zamundaaa 2023-01-17 15:01:33 UTC

*** This bug has been marked as a duplicate of bug 464217 ***