summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDavid Herrmann <dh.herrmann@gmail.com>2013-11-04 19:37:05 +0100
committerDavid Herrmann <dh.herrmann@gmail.com>2013-11-04 19:37:05 +0100
commit3b6fb0f75f50621eff2d6c1dfb5d9a0ce0f9216d (patch)
tree86163573bab2db90e66af0ea948de04f0df373e5 /src
parent48bf4bd58f72b0c6a274b286513bc7905d3c1e80 (diff)
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 <dh.herrmann@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/uterm_drm_shared.c1
1 files changed, 1 insertions, 0 deletions
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);
}