diff options
Diffstat (limited to 'src/ft_exit.c')
-rw-r--r-- | src/ft_exit.c | 3 |
1 files changed, 2 insertions, 1 deletions
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); |