From 3b6fb0f75f50621eff2d6c1dfb5d9a0ce0f9216d Mon Sep 17 00:00:00 2001 From: David Herrmann Date: Mon, 4 Nov 2013 19:37:05 +0100 Subject: [PATCH] uterm: drm: activate context before swapping Lets be safe here and activate the context before performing the buffer-swap. Drivers might be inconsistent and require this in case the background process changed the DRM state. Signed-off-by: David Herrmann --- src/uterm_drm_shared.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/uterm_drm_shared.c b/src/uterm_drm_shared.c index 8d1e1be..ec486ab 100644 --- a/src/uterm_drm_shared.c +++ b/src/uterm_drm_shared.c @@ -703,6 +703,7 @@ int uterm_drm_video_hotplug(struct uterm_video *video, if (modeset) { log_debug("re-activate display %p", disp); + uterm_display_use(disp, NULL); uterm_display_swap(disp, true); } -- 2.7.4