From 113147926d79638132f145a71d0b9a3a74518589 Mon Sep 17 00:00:00 2001 From: Rudy Bousset Date: Thu, 14 May 2020 15:03:28 +0200 Subject: Can't exit cleanly --- src/ft_exit.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/ft_exit.c') diff --git a/src/ft_exit.c b/src/ft_exit.c index d9d9ef8..8d1b3ba 100644 --- a/src/ft_exit.c +++ b/src/ft_exit.c @@ -76,7 +76,8 @@ int { if (FT_OS == 1) mlx_destroy_image(clist->wlist.wlx, clist->img.img); - mlx_destroy_window(clist->wlist.wlx, clist->wlist.winptr); + if (clist->clickclose == 0) + mlx_destroy_window(clist->wlist.wlx, clist->wlist.winptr); } ft_cancel_threads(clist); ft_del_map(&clist->mlist); -- cgit v1.2.3