mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-08 12:28:04 +02:00
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.
This commit is contained in:
parent
74c794bd9f
commit
8b7d91334f
1 changed files with 0 additions and 7 deletions
|
|
@ -2344,10 +2344,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);
|
||||
|
|
@ -2381,9 +2377,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");
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue