Bug 463419

Summary: Mouse controls don't work properly
Product: [Applications] kbreakout Reporter: Enrico <enricobe>
Component: generalAssignee: Viranch Mehta <viranch.mehta>
Status: REPORTED ---    
Severity: normal CC: kde-games-bugs-null
Priority: NOR    
Version First Reported In: 22.12.0   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Enrico 2022-12-24 07:39:38 UTC
SUMMARY
***
Hello, at the first start of the app Kbreakout asked me to activate the mouse controls. The mouse cursor should be "catched" by the application and it could be released pressing ESC key.
This doesn't seem work properly neither in X11 nor in Wayland (I can provide a screen recording if needed)
***


STEPS TO REPRODUCE
1. Open Kbreakout
2. Enable the mouse controls

OBSERVED RESULT

X11.a > The mouse is catched but it's still visible: I can see the mouse cursor
X11.b > If i try to push the mouse cursor on left/right window edges it's pushed again inside the window. This would be ok if the mouse cursor is not visible but since I can see the cursor, this behavior brings an annoying bouncing of the cursor on the edges 
X11.c > If i try to push the mouse cursor on the bottom edge, it exits the window and I lose the control on the game
X11.d > If i try to push the mouse cursor on the top edge it is bounced inside the window. Unfortunately I can't even go on the Menu Bar because the mouse is forced within the game window. So I can't choose any option from the menu bar.
X11.e > I can't press ESC. It doesn't work. To gain the mouse control again I have to use the bug  above ("X11.c") or lose one life so the game gets paused

Wayland.a > I can move the mouse cursor outside the game window without any problem. If I move the mouse outside the window I lose the control on the game
Wayland.b > The ESC key doesn't work

Operating System: RebornOS Linux (Arch)
KDE Plasma Version: 5.26.4
KDE Frameworks Version: 5.101.0
Qt Version: 5.15.7
Kernel Version: 6.1.1-arch1-1 (64-bit)