diff options
author | Thomas Adam <thomas@xteddy.org> | 2024-03-21 14:01:10 +0000 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2024-03-21 14:01:10 +0000 |
commit | 3c3643f580ca718a5f6bbeea81abeb0a8bbdb131 (patch) | |
tree | 70cd7c25f226d4b14ebdea8442ef989d81727c24 /window.c | |
parent | aa17f0e0c1c8b3f1d6fc8617613c74f07de66fae (diff) | |
parent | 89c1c43ef96d805d8fcb987c024ef85f994f11fa (diff) |
Merge branch 'obsd-master'
Diffstat (limited to 'window.c')
-rw-r--r-- | window.c | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -338,7 +338,7 @@ window_destroy(struct window *w) { log_debug("window @%u destroyed (%d references)", w->id, w->references); - window_unzoom(w); + window_unzoom(w, 0); RB_REMOVE(windows, &windows, w); if (w->layout_root != NULL) @@ -673,7 +673,7 @@ window_zoom(struct window_pane *wp) } int -window_unzoom(struct window *w) +window_unzoom(struct window *w, int notify) { struct window_pane *wp; @@ -690,7 +690,9 @@ window_unzoom(struct window *w) wp->saved_layout_cell = NULL; } layout_fix_panes(w, NULL); - notify_window("window-layout-changed", w); + + if (notify) + notify_window("window-layout-changed", w); return (0); } @@ -704,7 +706,7 @@ window_push_zoom(struct window *w, int always, int flag) w->flags |= WINDOW_WASZOOMED; else w->flags &= ~WINDOW_WASZOOMED; - return (window_unzoom(w) == 0); + return (window_unzoom(w, 1) == 0); } int |