From 6c0067c10360880334afa50815b880d04edcbf42 Mon Sep 17 00:00:00 2001 From: nicm Date: Thu, 21 Mar 2024 11:30:42 +0000 Subject: Do not notify window-layout-changed if the window is about to be destroyed (since it may have been freed by the time the notify happens), from Romain Francoise in GitHub issue 3860. --- resize.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'resize.c') diff --git a/resize.c b/resize.c index 457fee0a..dff95712 100644 --- a/resize.c +++ b/resize.c @@ -40,7 +40,7 @@ resize_window(struct window *w, u_int sx, u_int sy, int xpixel, int ypixel) /* If the window is zoomed, unzoom. */ zoomed = w->flags & WINDOW_ZOOMED; if (zoomed) - window_unzoom(w); + window_unzoom(w, 1); /* Resize the layout first. */ layout_resize(w, sx, sy); -- cgit v1.2.3