forked from enlightenment/enlightenment
defer popup creation. fixes popup being unresposive with composite
SVN revision: 49093
This commit is contained in:
parent
50e0cc1db0
commit
be4f8f8657
|
@ -420,6 +420,8 @@ _config_free(void)
|
||||||
|
|
||||||
|
|
||||||
/* action callback */
|
/* action callback */
|
||||||
|
static Ecore_Idle_Enterer *idler = NULL;
|
||||||
|
static const char *_params = NULL;
|
||||||
|
|
||||||
static int
|
static int
|
||||||
_e_mod_run_defer_cb(void *data)
|
_e_mod_run_defer_cb(void *data)
|
||||||
|
@ -427,7 +429,7 @@ _e_mod_run_defer_cb(void *data)
|
||||||
E_Zone *zone;
|
E_Zone *zone;
|
||||||
|
|
||||||
zone = data;
|
zone = data;
|
||||||
if (zone) evry_show(zone, NULL);
|
if (zone) evry_show(zone, _params);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -451,16 +453,12 @@ _e_mod_action_cb(E_Object *obj, const char *params)
|
||||||
|
|
||||||
if (!zone) return;
|
if (!zone) return;
|
||||||
|
|
||||||
|
IF_RELEASE(_params);
|
||||||
if (params && params[0])
|
if (params && params[0])
|
||||||
evry_show(zone, params);
|
_params = eina_stringshare_add(params);
|
||||||
else
|
|
||||||
evry_show(zone, NULL);
|
|
||||||
|
|
||||||
/* FIXME popup flickers sometimes when deferes*/
|
if (idler) ecore_idle_enterer_del(idler);
|
||||||
/* if (params && params[0])
|
ecore_idle_enterer_add(_e_mod_run_defer_cb, zone);
|
||||||
* evry_show(zone, params);
|
|
||||||
* else
|
|
||||||
* ecore_idle_enterer_add(_e_mod_run_defer_cb, zone); */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* menu item callback(s) */
|
/* menu item callback(s) */
|
||||||
|
|
Loading…
Reference in New Issue