forked from enlightenment/enlightenment
Patch from Peter van de Werken to fix uniconify of quickpanel windows.
SVN revision: 55776
This commit is contained in:
parent
20c9e5113a
commit
011172fbeb
|
@ -7,6 +7,7 @@ static Eina_Bool _e_mod_quickpanel_cb_mouse_up(void *data, int type __UNUSED__,
|
||||||
static Eina_Bool _e_mod_quickpanel_cb_border_add(void *data __UNUSED__, int type __UNUSED__, void *event);
|
static Eina_Bool _e_mod_quickpanel_cb_border_add(void *data __UNUSED__, int type __UNUSED__, void *event);
|
||||||
static Eina_Bool _e_mod_quickpanel_cb_border_remove(void *data __UNUSED__, int type __UNUSED__, void *event);
|
static Eina_Bool _e_mod_quickpanel_cb_border_remove(void *data __UNUSED__, int type __UNUSED__, void *event);
|
||||||
static Eina_Bool _e_mod_quickpanel_cb_border_resize(void *data __UNUSED__, int type __UNUSED__, void *event);
|
static Eina_Bool _e_mod_quickpanel_cb_border_resize(void *data __UNUSED__, int type __UNUSED__, void *event);
|
||||||
|
static Eina_Bool _e_mod_quickpanel_cb_border_uniconify(void *data __UNUSED__, int type __UNUSED__, void *event);
|
||||||
static void _e_mod_quickpanel_cb_post_fetch(void *data __UNUSED__, void *data2);
|
static void _e_mod_quickpanel_cb_post_fetch(void *data __UNUSED__, void *data2);
|
||||||
static void _e_mod_quickpanel_cb_free(E_Illume_Quickpanel *qp);
|
static void _e_mod_quickpanel_cb_free(E_Illume_Quickpanel *qp);
|
||||||
static Eina_Bool _e_mod_quickpanel_cb_delay_hide(void *data);
|
static Eina_Bool _e_mod_quickpanel_cb_delay_hide(void *data);
|
||||||
|
@ -42,12 +43,16 @@ e_mod_quickpanel_init(void)
|
||||||
ecore_event_handler_add(E_EVENT_BORDER_REMOVE,
|
ecore_event_handler_add(E_EVENT_BORDER_REMOVE,
|
||||||
_e_mod_quickpanel_cb_border_remove,
|
_e_mod_quickpanel_cb_border_remove,
|
||||||
NULL));
|
NULL));
|
||||||
|
|
||||||
_qp_hdls =
|
_qp_hdls =
|
||||||
eina_list_append(_qp_hdls,
|
eina_list_append(_qp_hdls,
|
||||||
ecore_event_handler_add(E_EVENT_BORDER_RESIZE,
|
ecore_event_handler_add(E_EVENT_BORDER_RESIZE,
|
||||||
_e_mod_quickpanel_cb_border_resize,
|
_e_mod_quickpanel_cb_border_resize,
|
||||||
NULL));
|
NULL));
|
||||||
|
_qp_hdls =
|
||||||
|
eina_list_append(_qp_hdls,
|
||||||
|
ecore_event_handler_add(E_EVENT_BORDER_UNICONIFY,
|
||||||
|
_e_mod_quickpanel_cb_border_uniconify,
|
||||||
|
NULL));
|
||||||
|
|
||||||
/* add hook for new borders so we can test for qp borders */
|
/* add hook for new borders so we can test for qp borders */
|
||||||
_qp_hook = e_border_hook_add(E_BORDER_HOOK_EVAL_PRE_POST_FETCH,
|
_qp_hook = e_border_hook_add(E_BORDER_HOOK_EVAL_PRE_POST_FETCH,
|
||||||
|
@ -340,6 +345,21 @@ _e_mod_quickpanel_cb_border_resize(void *data __UNUSED__, int type __UNUSED__, v
|
||||||
return ECORE_CALLBACK_PASS_ON;
|
return ECORE_CALLBACK_PASS_ON;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static Eina_Bool
|
||||||
|
_e_mod_quickpanel_cb_border_uniconify(void *data __UNUSED__, int type __UNUSED__, void *event)
|
||||||
|
{
|
||||||
|
E_Event_Border_Uniconify *ev;
|
||||||
|
E_Illume_Quickpanel *qp;
|
||||||
|
|
||||||
|
ev = event;
|
||||||
|
if (!ev->border->client.illume.quickpanel.quickpanel)
|
||||||
|
return ECORE_CALLBACK_PASS_ON;
|
||||||
|
if (!(qp = e_illume_quickpanel_by_zone_get(ev->border->zone)))
|
||||||
|
return ECORE_CALLBACK_PASS_ON;
|
||||||
|
e_mod_quickpanel_show(qp);
|
||||||
|
return ECORE_CALLBACK_PASS_ON;
|
||||||
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_e_mod_quickpanel_cb_post_fetch(void *data __UNUSED__, void *data2)
|
_e_mod_quickpanel_cb_post_fetch(void *data __UNUSED__, void *data2)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue