Lines Matching refs:seat
115 if (s->seat) { in session_free()
116 if (s->seat->active == s) in session_free()
117 s->seat->active = NULL; in session_free()
118 if (s->seat->pending_switch == s) in session_free()
119 s->seat->pending_switch = NULL; in session_free()
121 seat_evict_position(s->seat, s); in session_free()
122 LIST_REMOVE(sessions_by_seat, s->seat->sessions, s); in session_free()
257 if (s->seat) in session_save()
258 fprintf(f, "SEAT=%s\n", s->seat->id); in session_save()
317 if (s->seat && seat_has_vts(s->seat)) in session_save()
401 *seat = NULL, in session_load() local
427 "SEAT", &seat, in session_load()
485 if (seat && !s->seat) { in session_load()
488 o = hashmap_get(s->manager->seats, seat); in session_load()
492 log_error("Cannot attach session %s to seat %s", s->id, seat); in session_load()
495 if (!s->seat || !seat_has_vts(s->seat)) in session_load()
498 if (position && s->seat) { in session_load()
502 seat_claim_position(s->seat, s, npos); in session_load()
611 if (!s->seat) in session_activate()
614 if (s->seat->active == s) in session_activate()
618 if (seat_has_vts(s->seat)) { in session_activate()
632 s->seat->pending_switch = s; in session_activate()
637 seat_complete_switch(s->seat); in session_activate()
722 if (s->seat) in session_start()
723 seat_read_active_vt(s->seat); in session_start()
732 if (s->seat) in session_start()
733 seat_save(s->seat); in session_start()
739 if (s->seat && s->seat->active == s) in session_start()
740 seat_send_changed(s->seat, "ActiveSession", NULL); in session_start()
812 if (s->seat) in session_stop()
813 seat_evict_position(s->seat, s); in session_stop()
849 if (s->seat) in session_finalize()
850 seat_evict_position(s->seat, s); in session_finalize()
865 if (s->seat) { in session_finalize()
866 if (s->seat->active == s) in session_finalize()
867 seat_set_active(s->seat, NULL); in session_finalize()
869 seat_save(s->seat); in session_finalize()
908 if (!s->seat) in session_is_active()
911 return s->seat->active == s; in session_is_active()
1009 if (s->seat) in session_set_idle_hint()
1010 … seat_send_changed(s->seat, "IdleHint", "IdleSinceHint", "IdleSinceHintMonotonic", NULL); in session_set_idle_hint()