Hyprland: Hyprland placing cursor on wrong screen after mouse ungrab
Hyprland Version
0.28.0.r65.37a211a2
Bug or Regression?
Bug
Description
I just got a new GPU, and by default, hyprland is no longer detecting my screen placement correctly. I have set it up via the config file, but now something weird is happening: Whenver a fullscreen game grabs the cursor and ungrabs it, the cursor is placed on my other screen.
This is what I use:
monitor=HDMI-A-1, preferred, 240x150, 1
monitor=DP-3, preferred, 1920x0, 1
How to reproduce
open a game which grabs and ungrabs the mouse, like minecraft
Crash reports, logs, images, videos
No response
About this issue
- Original URL
- State: closed
- Created 10 months ago
- Comments: 34 (9 by maintainers)
Commits related to this issue
- input: fix xwayland constraint calcs some minor adjustments, fixes #3028 — committed to FlafyDev/Hyprland by vaxerski 10 months ago
Just to confirm that the current hyprland from AUR works for me. Confirmed fixed.
Many thanks @vaxerski !
I do get a weird issue that when the game first runs the window now seems to spawn “off screen”. I get a black bar on the edge of one of the monitors, I have to select and then
moveworkspacesilentto a workspace to see the application. But the right-click defocus mouse issue is gone.The issue has returned for me. Very weird
Did notice something though. It’s only happening on one monitor, as if it’s always placing the cursor on the exact same monitor. If I ungrab the cursor on the left monitor it puts it on the right monitor. If I ungrab it on the right monitor, the cursor stays on the right monitor.
I guess I didn’t notice this, because my right monitor is my main one. I only game on that