Lines Matching defs:wp0
56 struct window_pane *wp0 = sc->wp0;
62 if (wl != NULL && wp0 != NULL)
63 xsnprintf(tmp, sizeof tmp, "wl=%d wp0=%%%u", wl->idx, wp0->id);
65 xsnprintf(tmp, sizeof tmp, "wl=%d wp0=none", wl->idx);
66 else if (wp0 != NULL)
67 xsnprintf(tmp, sizeof tmp, "wl=none wp0=%%%u", wp0->id);
69 xsnprintf(tmp, sizeof tmp, "wl=none wp0=none");
106 sc->wp0 = TAILQ_FIRST(&w->panes);
107 TAILQ_REMOVE(&w->panes, sc->wp0, entry);
112 TAILQ_INSERT_HEAD(&w->panes, sc->wp0, entry);
113 window_pane_resize(sc->wp0, w->sx, w->sy);
115 layout_init(w, sc->wp0);
117 window_set_active_pane(w, sc->wp0, 0);
249 if (sc->wp0->fd != -1 && (~sc->flags & SPAWN_KILL)) {
250 window_pane_index(sc->wp0, &idx);
256 if (sc->wp0->fd != -1) {
257 bufferevent_free(sc->wp0->event);
258 close(sc->wp0->fd);
260 window_pane_reset_mode_all(sc->wp0);
261 screen_reinit(&sc->wp0->base);
262 input_free(sc->wp0->ictx);
263 sc->wp0->ictx = NULL;
264 new_wp = sc->wp0;
270 new_wp = window_add_pane(w, sc->wp0, hlimit, sc->flags);