end-4 / dots-hyprland

Modern, feature-rich and accessible desktop configuration.
https://end-4.github.io/dots-hyprland-wiki/en/
GNU General Public License v3.0
3.1k stars 201 forks source link

Cursor jumps to the center of the screen #499

Closed Roverp1 closed 1 month ago

Roverp1 commented 1 month ago

https://github.com/end-4/dots-hyprland/assets/149878979/7f7406d1-5036-4e29-bdc3-76b40e3937bc

Click to expand This may not related to dotfiles at all, but I never experienced that issue before on my dwm setup, where cursor behaved normally at every app (telegram included). So Im apologizing if it not related, and asking for a direction where I may find help.
end-4 commented 1 month ago

i'm experiencing this too, probably a hyprland issue it also happens to chromium when i click on links

Roverp1 commented 1 month ago

I've also found a similar issue on the Hyprland GitHub page: Game: cursor warps to center when it's near screen edges. I will move the issue if I can reproduce it on a clean Arch install.

ssvx commented 1 month ago

Does it still happen if you use this?

general { no_cursor_warps = true }

Or that other one from the wiki

cursor { no_warps = true }

Latter one is either new or old, yields an error when i use that.

Roverp1 commented 1 month ago

Yes, it fixed the problem. Even though it disabled warping the cursor to the active window when changing focus with the keyboard. I am happy enough with this solution. Thanks for the help.

ssvx commented 1 month ago

It remains unclear tho if nautilus is at fault here or not tho. Could imagine something like nautilus spawning new instances or requesting focus or something on opening a folder, causing the cursor to warp to the window's center. Could also mean there's room for improvement on Hyperland's side regarding the event trigger...

end-4 commented 1 month ago

It remains unclear tho if nautilus is at fault here or not tho

No, since this happens after I update Hyprland and it happens to Chromium too

end-4 commented 1 month ago

update hyprland guys it's fixed for me