https://bugs.kde.org/show_bug.cgi?id=524804
Bug ID: 524804
Summary: PointerWarpV1 requests are ignored if requested right
after the pointer is unlocked
Classification: Plasma
Product: kwin
Version First git master
Reported In:
Platform: Arch Linux
OS: Linux
Status: REPORTED
Severity: normal
Priority: NOR
Component: wayland-generic
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
Created attachment 195503
--> https://bugs.kde.org/attachment.cgi?id=195503&action=edit
A minimal example using SDL3
DESCRIPTION
If an application tries to warp the cursor with the PointerWarpV1 protocol
right after destroying a pointer lock, kwin will ignore the warp request
STEPS TO REPRODUCE
1. Build and run the attached main.cpp file (it can be compiled with just `g++
-lSDL3 main.cpp`)
2. Press Space to lock the cursor and then Esc to unlock it on the window it
creates
OBSERVED RESULT
When the cursor gets unlocked it goes back to where it was before it was locked
EXPECTED RESULT
The cursor should warp to the center of the window after being unlocked
Operating System: Arch Linux
KDE Plasma Version: 6.7.80
KDE Frameworks Version: 6.30.0
Qt Version: 6.11.2
Kernel Version: 6.18.46-1-lts (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 4600G with Radeon Graphics
Memory: 34 GB of RAM (32.9 GB usable)
Graphics Processor: AMD Radeon Graphics
ADDITIONAL INFORMATION
>From a discussion i had with zamundaaa on matrix it seems to happen because the
pointer lock is only destroyed when the surface is committed, so when the warp
request is processed the pointer lock is still active
--
You are receiving this mail because:
You are watching all bug changes.