https://bugs.kde.org/show_bug.cgi?id=482448
Bug ID: 482448 Summary: SDL_SetWindowGrab doesn't work with mouse not hidden (SDL2, X11 video driver only, Wayland plasma session) Classification: Plasma Product: kwin Version: 5.27.10 Platform: Other OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: general Assignee: kwin-bugs-n...@kde.org Reporter: e...@horse64.org Target Milestone: --- SUMMARY SDL_SetWindowGrab doesn't work with mouse not hidden (SDL2, X11 video driver only, Wayland plasma session). An example program to compile with SDL2 with minimal code can be found here, including a video of the bug: https://github.com/libsdl-org/SDL/issues/9162#issue-2156980130 An SDL2 contributor suggests it works with GNOME, and therefore is likely to be a KWin bug: https://github.com/libsdl-org/SDL/issues/9162#issuecomment-1977620580 My apologies if it isn't, I hope this bug report is useful to determine if that's the case. STEPS TO REPRODUCE 1. Run a plasma wayland session 2. Compile program found in https://github.com/libsdl-org/SDL/issues/9162#issue-2156980130 3. Run program with `SDL_VIDEODRIVER=x11` env var, it should open a window 4. Click into the window. Now move the mouse toward the border and outside. OBSERVED RESULT The mouse freely leaves the window. EXPECTED RESULT The mouse stays confined in the window. SOFTWARE/OS VERSIONS Linux/KDE Plasma: openSUSE Slowroll 20240213 (available in About System) KDE Plasma Version: 5.27.10 KDE Frameworks Version: Version 5.113.0 Qt Version: not sure which one was used ADDITIONAL INFORMATION -- You are receiving this mail because: You are watching all bug changes.