hyprwm / Hyprland

Hyprland is an independent, highly customizable, dynamic tiling Wayland compositor that doesn't sacrifice on its looks.
https://hyprland.org
BSD 3-Clause "New" or "Revised" License
21.96k stars 912 forks source link

Mouse cursor gets stuck on the second screen while the first is switched off #3869

Open iddm opened 1 year ago

iddm commented 1 year ago

Hyprland Version

2e26542e3bba3533e71e13f2257823d96da2318a

Bug or Regression?

Bug

Description

I don't think it was a month or two ago, but recently (the day this commit landed), I noticed that in my two-monitor setup, the cursor gets stuck on one monitor (left) while the right monitor is off, and the mouse movement isn't registered (as well as clicks, scroll, all other events, seemingly), until the right monitor switches on. The behaviour is asymmetrical: if only the right monitor is switched on and the left one is switched off, the mouse events work just fine. A screenshot of this would be useless. I can only record a video of two monitors from my phone if you are interested, but this is a bit annoying when I know I need just one left monitor to work for a short period of time (like I know there is my browser and I just want to quickly read something and leave immediately after).

How to reproduce

  1. Have a two monitor setup.
  2. I am not sure this is relevant, but in my setup: one monitor is to the left, and another is to the right:

    monitor=DP-3, 2560x1440@240, 0x0, 1, vrr, 0, bitdepth, 10
    monitor=DP-2, 2560x1440@360, 2560x0, 1, vrr, 0, bitdepth, 10
  3. Turn off both, then turn on only the left one. If the cursor is there, your mouse input won't be reflected: the cursor is stuck, no scroll events, no click events are registered.
  4. Turn on the right monitor, everything starts to work.

Crash reports, logs, images, videos

No response

vaxerski commented 1 year ago

how do you switch off the monitor? keyword disable or physically unplug?

iddm commented 1 year ago

Just pressing the on/off button on the monitor. I also can turn on/off the DPMS and the effect is the same. A real use-case:

When I leave my PC for a relatively long time, I turn off the monitors. When I come back just for a second, to quickly browse a web-page, I know the browser is on my left monitor, so I turn it on and leave the right one off. But the cursor isn't moving. And I don't think right after the immediate presentation mode was merged in Hyprland I saw it happening, so probably we could dissect.

hacker1024 commented 9 months ago

This issue is still relevant.