mirror of
https://github.com/tmux/tmux.git
synced 2024-11-16 01:18:52 +00:00
Notify on zoom/unzoom, from George Nachmann.
This commit is contained in:
parent
d88c381ce9
commit
160e3e2be3
2
window.c
2
window.c
@ -491,6 +491,7 @@ window_zoom(struct window_pane *wp)
|
|||||||
w->saved_layout_root = w->layout_root;
|
w->saved_layout_root = w->layout_root;
|
||||||
layout_init(w, wp);
|
layout_init(w, wp);
|
||||||
w->flags |= WINDOW_ZOOMED;
|
w->flags |= WINDOW_ZOOMED;
|
||||||
|
notify_window_layout_changed(w);
|
||||||
|
|
||||||
return (0);
|
return (0);
|
||||||
}
|
}
|
||||||
@ -512,6 +513,7 @@ window_unzoom(struct window *w)
|
|||||||
wp->saved_layout_cell = NULL;
|
wp->saved_layout_cell = NULL;
|
||||||
}
|
}
|
||||||
layout_fix_panes(w, w->sx, w->sy);
|
layout_fix_panes(w, w->sx, w->sy);
|
||||||
|
notify_window_layout_changed(w);
|
||||||
|
|
||||||
return (0);
|
return (0);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user