From 8ddde14287494e687979512eea49908c06198342 Mon Sep 17 00:00:00 2001 From: Alastair Poole Date: Fri, 30 Aug 2019 20:44:28 +0100 Subject: [PATCH] main: exit on close. We don't lose any data so just exit here. --- src/main.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/main.c b/src/main.c index 869ccff..d2fe4b7 100644 --- a/src/main.c +++ b/src/main.c @@ -2,20 +2,16 @@ See LICENSE file for details. */ -#define VERSION "0.2.3" +#define VERSION "0.2.6" #include "process.h" #include "system.h" #include "ui.h" static void -_win_del_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) +_win_del_cb(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) { - Ui *ui; - - ui = data; - - ui_shutdown(ui); + exit(0)r; } static Evas_Object *