diff options
author | Scott Anderson <ascent12@hotmail.com> | 2017-09-10 00:13:39 +1200 |
---|---|---|
committer | Scott Anderson <ascent12@hotmail.com> | 2017-09-10 00:13:39 +1200 |
commit | 1682c0d983630d315dab0277381a5c3ffb69feaf (patch) | |
tree | 51dd740ea389de29ef69614743883c2df450c10a | |
parent | 6717b78bd6dcb1e103556cf86813c715c4212106 (diff) |
Remove non-blocking flag on modesetting commits
This seems to make hotplugging DisplayPort MST connectors more reliable.
-rw-r--r-- | backend/drm/drm-atomic.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/backend/drm/drm-atomic.c b/backend/drm/drm-atomic.c index adb5bb47..a6523331 100644 --- a/backend/drm/drm-atomic.c +++ b/backend/drm/drm-atomic.c @@ -48,7 +48,7 @@ static bool atomic_commit(int drm_fd, struct atomic *atom, return false; } - uint32_t flags = DRM_MODE_PAGE_FLIP_EVENT | DRM_MODE_ATOMIC_NONBLOCK | flag; + uint32_t flags = DRM_MODE_PAGE_FLIP_EVENT | flag; int ret = drmModeAtomicCommit(drm_fd, atom->req, flags, output); if (ret) { @@ -117,7 +117,7 @@ static bool atomic_crtc_pageflip(struct wlr_drm_backend *backend, atomic_add(&atom, crtc->id, crtc->props.active, 1); set_plane_props(&atom, crtc->primary, crtc->id, fb_id, true); return atomic_commit(backend->fd, &atom, - output, mode ? DRM_MODE_ATOMIC_ALLOW_MODESET : 0); + output, mode ? DRM_MODE_ATOMIC_ALLOW_MODESET : DRM_MODE_ATOMIC_NONBLOCK); } static void atomic_conn_enable(struct wlr_drm_backend *backend, |