toggle x_fatal variable when xwayland crashes

This commit is contained in:
Mike Blumenkrantz 2018-01-22 16:35:34 -05:00
parent a0985dc6c0
commit afe31ab8d5
1 changed files with 2 additions and 0 deletions

View File

@ -262,6 +262,7 @@ static void
xwayland_fatal(void *d EINA_UNUSED)
{
/* on xwayland fatal, attempt to restart it */
x_fatal = 1;
xwl_shutdown();
xwl_init(NULL);
}
@ -359,6 +360,7 @@ xwl_init(void *d EINA_UNUSED)
{
char disp[8];
x_fatal = 0;
/* make sure it's a wayland compositor */
if (e_comp->comp_type == E_PIXMAP_TYPE_X) return EINA_FALSE;