diff options
author | Simon Ser <contact@emersion.fr> | 2020-12-26 11:42:23 +0100 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2021-01-03 19:34:54 +0100 |
commit | 576ff57db09f6f4ee523a567712a3ffcf5dc45a8 (patch) | |
tree | 77a8ee86a79b54ffe55d001aefa6c4f5d9a95844 /include/wlr/backend.h | |
parent | eb30cde77751aaf11a6a754d053a50df5399739c (diff) |
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
Diffstat (limited to 'include/wlr/backend.h')
0 files changed, 0 insertions, 0 deletions