version 1.9, 2013/03/21 18:46:12 |
version 1.10, 2013/03/24 09:57:59 |
|
|
struct window *w; |
struct window *w; |
struct window_pane *wp; |
struct window_pane *wp; |
u_int i, j, ssx, ssy, has, limit; |
u_int i, j, ssx, ssy, has, limit; |
int flag, has_status; |
int flag, has_status, is_zoomed; |
|
|
RB_FOREACH(s, sessions, &sessions) { |
RB_FOREACH(s, sessions, &sessions) { |
has_status = options_get_number(&s->options, "status"); |
has_status = options_get_number(&s->options, "status"); |
|
|
|
|
if (w->sx == ssx && w->sy == ssy) |
if (w->sx == ssx && w->sy == ssy) |
continue; |
continue; |
|
|
log_debug("window size %u,%u (was %u,%u)", ssx, ssy, w->sx, |
log_debug("window size %u,%u (was %u,%u)", ssx, ssy, w->sx, |
w->sy); |
w->sy); |
|
|
|
is_zoomed = w->flags & WINDOW_ZOOMED; |
|
if (is_zoomed) |
|
window_unzoom(w); |
layout_resize(w, ssx, ssy); |
layout_resize(w, ssx, ssy); |
window_resize(w, ssx, ssy); |
window_resize(w, ssx, ssy); |
|
if (is_zoomed && window_pane_visible(w->active)) |
|
window_zoom(w->active); |
|
|
/* |
/* |
* If the current pane is now not visible, move to the next |
* If the current pane is now not visible, move to the next |