diff options
Diffstat (limited to 'platform/x11/x11_main.c')
-rw-r--r-- | platform/x11/x11_main.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/platform/x11/x11_main.c b/platform/x11/x11_main.c index 5b0266c5..58d0e2af 100644 --- a/platform/x11/x11_main.c +++ b/platform/x11/x11_main.c @@ -295,11 +295,15 @@ static void winopen(void) void winclose(pdfapp_t *app) { - closing = 1; + if (pdfapp_preclose(app)) + { + closing = 1; + } } int winsavequery(pdfapp_t *app) { + fprintf(stderr, "mupdf: discarded changes to document\n"); /* FIXME: temporary dummy implementation */ return DISCARD; } |