wlroots-hyprland/backend/drm
Simon Ser 576ff57db0 backend/drm: ignore hotplug events while inactive
When the session is inactive, we can't change the KMS state. Ignore
hotplug events so that compositors don't try to perform a modeset when
a connector is plugged in. We already re-scan connectors when the
session becomes active.

To test, run a wlroots compositor on VT 1, switch to VT 2, unplug a
connector, re-plug it, switch back to VT 1. Without this patch the
screen is black on VT 1.

References: https://github.com/swaywm/wlroots/issues/2370
2021-01-03 19:34:54 +01:00
..
atomic.c backend/drm: use connector log helpers in atomic backend 2020-12-24 17:55:45 +01:00
backend.c backend/drm: ignore hotplug events while inactive 2021-01-03 19:34:54 +01:00
cvt.c backend/drm: add support for custom modes 2019-10-27 10:46:47 -04:00
drm.c backend/drm: remove special linear case for cursor plane 2020-12-30 11:17:43 +01:00
legacy.c backend/drm: remove drm_fb_acquire 2020-12-22 15:53:10 +01:00
meson.build meson: Various improvements 2019-12-23 07:48:29 -05:00
properties.c backend/drm: "scaling mode" is a connector property 2020-11-30 11:57:08 +01:00
renderer.c Remove wlr_create_renderer_func_t 2020-12-30 17:09:40 +01:00
util.c drm: add fallback drmModeAddFB for drivers which do not support drmModeAddFB2 2020-12-28 14:15:04 +01:00