From 2e611264a31294bacdfb6ec0fd9a695599226d2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristian=20H=C3=B8gsberg?= Date: Tue, 22 Oct 2013 12:27:46 -0700 Subject: [PATCH] compositor-drm: Don't call drop/set master anymore This is done by either laucnher-util.c directly, weston-launch or logind, depending on how we're launched. --- src/compositor-drm.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/compositor-drm.c b/src/compositor-drm.c index 99227086..2f339462 100644 --- a/src/compositor-drm.c +++ b/src/compositor-drm.c @@ -2365,10 +2365,6 @@ session_notify(struct wl_listener *listener, void *data) if (ec->base.session_active) { weston_log("activating session\n"); compositor->focus = 1; - if (ec->base.launcher == NULL && drmSetMaster(ec->drm.fd)) { - weston_log("failed to set master: %m\n"); - wl_display_terminate(compositor->wl_display); - } compositor->state = ec->prev_state; drm_compositor_set_modes(ec); weston_compositor_damage_all(compositor); @@ -2402,9 +2398,6 @@ session_notify(struct wl_listener *listener, void *data) sprite->plane_id, output->crtc_id, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); - - if (ec->base.launcher == NULL && drmDropMaster(ec->drm.fd) < 0) - weston_log("failed to drop master: %m\n"); }; }