aboutsummaryrefslogtreecommitdiff
path: root/backend
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2020-11-30 16:19:01 +0100
committerSimon Ser <contact@emersion.fr>2020-12-01 11:31:03 +0100
commit8bc5a92a98ca5b788cd4f426ad2605da265ef422 (patch)
tree9131e9d5a8e129f0757541f8ae8147faf784b1be /backend
parentde9ff46629fcf3b46252655c5d14ca068c51b46a (diff)
Revert "backend/drm: stop force-probing connectors"
This reverts commit 713c1661b742f93a7d2167321837c0d99541ca87. It turns out we do need to force-probe on startup and on hotplug [1]. This is unfortunate, but that's just how the uAPI works. Fixing this would require patching the kernel. [1]: https://lists.freedesktop.org/archives/dri-devel/2020-November/289506.html Closes: https://github.com/swaywm/wlroots/issues/2499
Diffstat (limited to 'backend')
-rw-r--r--backend/drm/drm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/backend/drm/drm.c b/backend/drm/drm.c
index de505376..f797dd5a 100644
--- a/backend/drm/drm.c
+++ b/backend/drm/drm.c
@@ -1282,8 +1282,8 @@ void scan_drm_connectors(struct wlr_drm_backend *drm) {
struct wlr_drm_connector *new_outputs[res->count_connectors + 1];
for (int i = 0; i < res->count_connectors; ++i) {
- drmModeConnector *drm_conn =
- drmModeGetConnectorCurrent(drm->fd, res->connectors[i]);
+ drmModeConnector *drm_conn = drmModeGetConnector(drm->fd,
+ res->connectors[i]);
if (!drm_conn) {
wlr_log_errno(WLR_ERROR, "Failed to get DRM connector");
continue;