Lines Matching defs:seat

119         if (s->seat) {
120 if (s->seat->active == s)
121 s->seat->active = NULL;
122 if (s->seat->pending_switch == s)
123 s->seat->pending_switch = NULL;
125 seat_evict_position(s->seat, s);
126 LIST_REMOVE(sessions_by_seat, s->seat->sessions, s);
211 if (s->seat)
212 fprintf(f, "SEAT=%s\n", s->seat->id);
269 if (s->seat && seat_has_vts(s->seat))
314 *seat = NULL,
335 "SEAT", &seat,
390 if (seat && !s->seat) {
393 o = hashmap_get(s->manager->seats, seat);
397 log_error("Cannot attach session %s to seat %s", s->id, seat);
400 if (!s->seat || !seat_has_vts(s->seat))
403 if (position && s->seat) {
407 seat_claim_position(s->seat, s, npos);
477 if (!s->seat)
480 if (s->seat->active == s)
484 if (seat_has_vts(s->seat)) {
495 * We save the session we want to switch to in seat->pending_switch and
498 s->seat->pending_switch = s;
503 seat_complete_switch(s->seat);
585 if (s->seat)
586 seat_read_active_vt(s->seat);
595 if (s->seat)
596 seat_save(s->seat);
601 if (s->seat) {
602 if (s->seat->active == s)
603 seat_send_changed(s->seat, "Sessions", "ActiveSession", NULL);
605 seat_send_changed(s->seat, "Sessions", NULL);
651 if (s->seat)
652 seat_evict_position(s->seat, s);
689 if (s->seat)
690 seat_evict_position(s->seat, s);
705 if (s->seat) {
706 if (s->seat->active == s)
707 seat_set_active(s->seat, NULL);
709 seat_save(s->seat);
710 seat_send_changed(s->seat, "Sessions", NULL);
748 if (!s->seat)
751 return s->seat->active == s;
855 if (s->seat)
856 seat_send_changed(s->seat, "IdleHint", "IdleSinceHint", "IdleSinceHintMonotonic", NULL);