Lines Matching full:windows
125 RB_INIT(&s->windows);
223 while (!RB_EMPTY(&s->windows)) {
224 wl = RB_ROOT(&s->windows);
226 winlink_remove(&s->windows, wl);
336 if ((wl = winlink_add(&s->windows, idx)) == NULL) {
360 winlink_remove(&s->windows, wl);
364 if (RB_EMPTY(&s->windows))
420 wl = RB_MIN(winlinks, &s->windows);
451 wl = RB_MAX(winlinks, &s->windows);
464 wl = winlink_find_by_index(&s->windows, idx);
650 ww = &target->windows;
661 memcpy(&old_windows, &s->windows, sizeof old_windows);
662 RB_INIT(&s->windows);
664 /* Link all the windows from the target. */
666 wl2 = winlink_add(&s->windows, wl->idx);
675 s->curw = winlink_find_by_index(&s->windows, s->curw->idx);
677 s->curw = winlink_find_by_index(&s->windows, target->curw->idx);
683 wl2 = winlink_find_by_index(&s->windows, wl->idx);
693 wl2 = winlink_find_by_window_id(&s->windows, wl->window->id);
700 /* Renumber the windows across winlinks attached to a specific session. */
710 memcpy(&old_wins, &s->windows, sizeof old_wins);
711 RB_INIT(&s->windows);
719 wl_new = winlink_add(&s->windows, new_idx);
732 /* Fix the stack of last windows now. */
737 wl_new = winlink_find_by_window(&s->windows, wl->window);
746 marked_pane.wl = winlink_find_by_index(&s->windows, marked_idx);
750 s->curw = winlink_find_by_index(&s->windows, new_curw_idx);