discomfitor pushed a commit to branch enlightenment-0.22.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=7a9a4b085502014acd44c5b5e225093a1ebe672c

commit 7a9a4b085502014acd44c5b5e225093a1ebe672c
Author: Mike Blumenkrantz <[email protected]>
Date:   Mon Nov 6 13:58:53 2017 -0500

    prevent double shutdown of x11 compositor in xwayland mode
    
    only do shutdown in xwl module if not actively shutting down
---
 src/modules/xwayland/e_mod_main.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/modules/xwayland/e_mod_main.c 
b/src/modules/xwayland/e_mod_main.c
index f3826c3cd..7848595b3 100644
--- a/src/modules/xwayland/e_mod_main.c
+++ b/src/modules/xwayland/e_mod_main.c
@@ -451,8 +451,11 @@ xwl_shutdown(void)
    if (exs->sig_hdlr) ecore_event_handler_del(exs->sig_hdlr);
 
    free(exs);
-   if (e_comp_util_has_x()) e_comp_x_shutdown();
-   ecore_x_shutdown();
+   if (!stopping)
+     {
+        if (e_comp_util_has_x()) e_comp_x_shutdown();
+        ecore_x_shutdown();
+     }
    e_util_env_set("DISPLAY", NULL);
 }
 

-- 


Reply via email to