Pointer / Cursor / Mouse warping / teleportation doesn't damage old location. #8142
Open
1 task done
Labels
bug
Something isn't working
Already reported ? *
Regression?
No
System Info and Version
System/Version info
Description
When teleporting the cursor with SDL3 by calling
SDL_WarpMouseInWindow(window, x, y)
(which is implemented here), the mouse does warp, but the cursor is still also ghosting in its location before the warp. Note that the window is not constantly submitting frames to the compositor (it's not a game).I don't know the internals of Hyprland, but it looks like there is a region of the screen not being correctly marked as damaged. So every other frame in the compositors swapchain, you get the old cursor show up.
How to reproduce
Make the mouse teleport more than one tile.
Crash reports, logs, images, videos
Wayfarer_2024-10-17_114022.webm
You can also see how sometimes the cursor is cut in half when it's ghosting. I'm assuming that's across the edge of a tile (where one tile is marked damaged, and the other is not).
The text was updated successfully, but these errors were encountered: