version 1.288, 2024/02/13 08:03:50 |
version 1.289, 2024/03/21 11:30:42 |
|
|
{ |
{ |
log_debug("window @%u destroyed (%d references)", w->id, w->references); |
log_debug("window @%u destroyed (%d references)", w->id, w->references); |
|
|
window_unzoom(w); |
window_unzoom(w, 0); |
RB_REMOVE(windows, &windows, w); |
RB_REMOVE(windows, &windows, w); |
|
|
if (w->layout_root != NULL) |
if (w->layout_root != NULL) |
|
|
} |
} |
|
|
int |
int |
window_unzoom(struct window *w) |
window_unzoom(struct window *w, int notify) |
{ |
{ |
struct window_pane *wp; |
struct window_pane *wp; |
|
|
|
|
wp->saved_layout_cell = NULL; |
wp->saved_layout_cell = NULL; |
} |
} |
layout_fix_panes(w, NULL); |
layout_fix_panes(w, NULL); |
notify_window("window-layout-changed", w); |
|
|
|
|
if (notify) |
|
notify_window("window-layout-changed", w); |
|
|
return (0); |
return (0); |
} |
} |
|
|
|
|
w->flags |= WINDOW_WASZOOMED; |
w->flags |= WINDOW_WASZOOMED; |
else |
else |
w->flags &= ~WINDOW_WASZOOMED; |
w->flags &= ~WINDOW_WASZOOMED; |
return (window_unzoom(w) == 0); |
return (window_unzoom(w, 1) == 0); |
} |
} |
|
|
int |
int |