Bug 453268

Summary: KWin's Wayland session limits framerate when borderless in XWayland applications.
Product: [Plasma] kwin Reporter: nexustcrax
Component: wayland-genericAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: normal CC: xaver.hugl
Priority: NOR    
Version: 5.24.4   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:

Description nexustcrax 2022-05-01 18:32:52 UTC
On KWin's Wayland session, the framerate inside XWayland applications gets limited to the monitor's refresh rate when either setting the window to become fullscreen or removing its borders through the context menu. This can be seen with glxgears. 

STEPS TO REPRODUCE
1. Run "env vblank_mode=0 __GL_SYNC_TO_VBLANK=0 glxgears"
2. Remove the window borders with the context menu (Alt-F3->More Actions->No border).


OBSERVED RESULT
The framerate is uncapped until the window borders get removed, then it drops to the monitor refresh rate.

EXPECTED RESULT
Uncapped framerate

SOFTWARE/OS VERSIONS
OS: openSUSE Tumbleweed
Linux Kernel: 5.17.4-1 
KDE Plasma Version:  5.24.4
KDE Frameworks Version: 5.93.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION
I also tested Mutter and wlroots (Wayfire) to reproduce the issue there, both through a standalone wayland session and nested inside KWin itself, but both work as expected.
Comment 1 Zamundaaa 2022-05-02 15:08:36 UTC

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