Mercurial > vim
comparison src/gui_gtk_x11.c @ 22452:3845389725c9 v8.2.1774
patch 8.2.1774: GTK: hang when forced to exit
Commit: https://github.com/vim/vim/commit/32fbc4f247a31e35ade0939542e11aa033a2554f
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Sep 29 22:16:09 2020 +0200
patch 8.2.1774: GTK: hang when forced to exit
Problem: GTK: hang when forced to exit.
Solution: Do not clean up "mainwin" when really_exiting is set.
(Zdenek Dohnal, closes #7042)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 29 Sep 2020 22:30:04 +0200 |
parents | 9b5a90ad76c6 |
children | 6c7e4db139a3 |
comparison
equal
deleted
inserted
replaced
22451:9e097eb15d54 | 22452:3845389725c9 |
---|---|
4379 } | 4379 } |
4380 | 4380 |
4381 return OK; | 4381 return OK; |
4382 } | 4382 } |
4383 | 4383 |
4384 | 4384 /* |
4385 * Clean up for when exiting Vim. | |
4386 */ | |
4385 void | 4387 void |
4386 gui_mch_exit(int rc UNUSED) | 4388 gui_mch_exit(int rc UNUSED) |
4387 { | 4389 { |
4388 if (gui.mainwin != NULL) | 4390 // Clean up, unless we don't want to invoke free(). |
4391 if (gui.mainwin != NULL && !really_exiting) | |
4389 gtk_widget_destroy(gui.mainwin); | 4392 gtk_widget_destroy(gui.mainwin); |
4390 } | 4393 } |
4391 | 4394 |
4392 /* | 4395 /* |
4393 * Get the position of the top left corner of the window. | 4396 * Get the position of the top left corner of the window. |