summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libweston/backend-drm/drm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libweston/backend-drm/drm.c b/libweston/backend-drm/drm.c
index d513010c..5fb20355 100644
--- a/libweston/backend-drm/drm.c
+++ b/libweston/backend-drm/drm.c
@@ -2564,7 +2564,8 @@ drm_device_changed(struct weston_compositor *compositor,
{
struct drm_backend *b = to_drm_backend(compositor);
- if (b->drm.fd < 0 || b->drm.devnum != device)
+ if (b->drm.fd < 0 || b->drm.devnum != device ||
+ compositor->session_active == added)
return;
compositor->session_active = added;