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
19.61k stars 827 forks source link

DIsconnecting middle monitors freezes inputs #3274

Open acidkewpie opened 1 year ago

acidkewpie commented 1 year ago

Hyprland Version

0.29.1

Bug or Regression?

Bug

Description

Not really sure if this is a bug or feature request... a bit of both. But I have 3 external monitors, each specified with a fixed position in the config file, in order to have them in the right order. If I remove the middle one, pull the plug, then I am unable to still move my mouse between the now separated monitors. If I reconnect, it starts working again.

Ultimately this feels like I shouldn't be having to specific these exact monitor coordinates, and instead hyprland should have an xrandr style left-of, right-of syntax, so that the order of monitors is reliable and configurable, without having to know the exact screen dimensions, and in this instance, the exact number of screens.

Whilst the "shortest" expected behaviour should be to just allow a gap in the monitors and nothing stop working, the real solution should be to fully remove the missing monitor and rearrange the monitors to be directly adjacent. This doesn't appear to be possible given the opportunistic way multiple monitors are added when exact coords aren't provided.

How to reproduce

Define 3 monitors with explicit coordinates Disconnect the middle monitor Try and use mouse to reach both the remaining monitors. Mouse input should be seen to stop altogether.

Crash reports, logs, images, videos

No response

erdnuesse commented 11 months ago

I am having a similar ting, where all my inputs die, whenever one monitor disconnects or enters a powersaved state. Idk what to do to fetch logs at this point, only thing I could do were reboots. I didn't dig deeper for now as well.

MightyPlaza commented 1 month ago

can't this be scripted?

Dokkae6949 commented 5 days ago

@MightyPlaza It can be scripted with using something like this I think.