Hyprland icon indicating copy to clipboard operation
Hyprland copied to clipboard

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

Open iddm opened this issue 2 years ago • 3 comments

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

iddm avatar Nov 17 '23 09:11 iddm

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

vaxerski avatar Nov 17 '23 12:11 vaxerski

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.

iddm avatar Nov 17 '23 12:11 iddm

This issue is still relevant.

hacker1024 avatar Feb 14 '24 12:02 hacker1024