make 'after_restart' variable global

this allows the compositor to detect (accurately) whether it is a new
instance
This commit is contained in:
Mike Blumenkrantz 2017-02-24 14:15:42 -05:00
parent 0ce43bd0dd
commit e39b6601b0
2 changed files with 3 additions and 1 deletions

View File

@ -321,6 +321,8 @@ extern E_API Eina_Bool e_nopause;
extern E_API Eina_Bool e_precache_end;
extern E_API Eina_Bool x_fatal;
extern E_API Eina_Bool after_restart;
extern EINTERN const char *e_first_frame;
extern EINTERN double e_first_frame_start_time;

View File

@ -111,6 +111,7 @@ E_API Eina_Bool starting = EINA_TRUE;
E_API Eina_Bool stopping = EINA_FALSE;
E_API Eina_Bool restart = EINA_FALSE;
E_API Eina_Bool e_nopause = EINA_FALSE;
E_API Eina_Bool after_restart = EINA_FALSE;
EINTERN const char *e_first_frame = NULL;
EINTERN double e_first_frame_start_time = -1;
@ -213,7 +214,6 @@ main(int argc, char **argv)
{
Eina_Bool nostartup = EINA_FALSE;
Eina_Bool safe_mode = EINA_FALSE;
Eina_Bool after_restart = EINA_FALSE;
Eina_Bool waslocked = EINA_FALSE;
Eina_Stringshare *strshare;
double t = 0.0, tstart = 0.0;