forked from enlightenment/enlightenment
rename E_EVENT_COMPOSITOR_RESIZE -> E_EVENT_COMPOSITOR_UPDATE
This commit is contained in:
parent
1ca1201110
commit
6dd9205e0a
|
@ -38,7 +38,7 @@ static double ecore_frametime = 0;
|
||||||
|
|
||||||
static int _e_comp_log_dom = -1;
|
static int _e_comp_log_dom = -1;
|
||||||
|
|
||||||
E_API int E_EVENT_COMPOSITOR_RESIZE = -1;
|
E_API int E_EVENT_COMPOSITOR_UPDATE = -1;
|
||||||
E_API int E_EVENT_COMPOSITOR_DISABLE = -1;
|
E_API int E_EVENT_COMPOSITOR_DISABLE = -1;
|
||||||
E_API int E_EVENT_COMPOSITOR_ENABLE = -1;
|
E_API int E_EVENT_COMPOSITOR_ENABLE = -1;
|
||||||
E_API int E_EVENT_COMPOSITOR_XWAYLAND_INIT = -1;
|
E_API int E_EVENT_COMPOSITOR_XWAYLAND_INIT = -1;
|
||||||
|
@ -1017,7 +1017,7 @@ e_comp_init(void)
|
||||||
ecore_frametime = ecore_animator_frametime_get();
|
ecore_frametime = ecore_animator_frametime_get();
|
||||||
shape_debug = !!getenv("E_SHAPE_DEBUG");
|
shape_debug = !!getenv("E_SHAPE_DEBUG");
|
||||||
|
|
||||||
E_EVENT_COMPOSITOR_RESIZE = ecore_event_type_new();
|
E_EVENT_COMPOSITOR_UPDATE = ecore_event_type_new();
|
||||||
E_EVENT_COMP_OBJECT_ADD = ecore_event_type_new();
|
E_EVENT_COMP_OBJECT_ADD = ecore_event_type_new();
|
||||||
E_EVENT_COMPOSITOR_DISABLE = ecore_event_type_new();
|
E_EVENT_COMPOSITOR_DISABLE = ecore_event_type_new();
|
||||||
E_EVENT_COMPOSITOR_ENABLE = ecore_event_type_new();
|
E_EVENT_COMPOSITOR_ENABLE = ecore_event_type_new();
|
||||||
|
|
|
@ -684,7 +684,7 @@ e_comp_canvas_update(void)
|
||||||
if (!starting)
|
if (!starting)
|
||||||
{
|
{
|
||||||
e_object_ref(E_OBJECT(e_comp));
|
e_object_ref(E_OBJECT(e_comp));
|
||||||
ecore_event_add(E_EVENT_COMPOSITOR_RESIZE, NULL, _e_comp_canvas_event_compositor_resize_free, NULL);
|
ecore_event_add(E_EVENT_COMPOSITOR_UPDATE, NULL, _e_comp_canvas_event_compositor_resize_free, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
EINA_LIST_FOREACH(e_comp->zones, l, zone)
|
EINA_LIST_FOREACH(e_comp->zones, l, zone)
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
#ifndef E_COMP_CANVAS_H
|
#ifndef E_COMP_CANVAS_H
|
||||||
#define E_COMP_CANVAS_H
|
#define E_COMP_CANVAS_H
|
||||||
|
|
||||||
extern E_API int E_EVENT_COMPOSITOR_RESIZE;
|
extern E_API int E_EVENT_COMPOSITOR_UPDATE;
|
||||||
|
|
||||||
E_API Eina_Bool e_comp_canvas_init(int w, int h);
|
E_API Eina_Bool e_comp_canvas_init(int w, int h);
|
||||||
EINTERN void e_comp_canvas_clear(void);
|
EINTERN void e_comp_canvas_clear(void);
|
||||||
|
|
|
@ -2387,7 +2387,7 @@ e_gadget_init(void)
|
||||||
menu_act->func.go_mouse = _gadget_act_menu;
|
menu_act->func.go_mouse = _gadget_act_menu;
|
||||||
|
|
||||||
E_LIST_HANDLER_APPEND(handlers, E_EVENT_COMP_OBJECT_ADD, _site_auto_comp_object_handler, NULL);
|
E_LIST_HANDLER_APPEND(handlers, E_EVENT_COMP_OBJECT_ADD, _site_auto_comp_object_handler, NULL);
|
||||||
E_LIST_HANDLER_APPEND(handlers, E_EVENT_COMPOSITOR_RESIZE, _site_auto_comp_update, NULL);
|
E_LIST_HANDLER_APPEND(handlers, E_EVENT_COMPOSITOR_UPDATE, _site_auto_comp_update, NULL);
|
||||||
|
|
||||||
comp_site = e_comp->canvas->gadget_site = e_gadget_site_add(E_GADGET_SITE_ORIENT_NONE, "__desktop");
|
comp_site = e_comp->canvas->gadget_site = e_gadget_site_add(E_GADGET_SITE_ORIENT_NONE, "__desktop");
|
||||||
evas_object_event_callback_add(e_comp->canvas->resize_object, EVAS_CALLBACK_RESIZE, _comp_site_resize, comp_site);
|
evas_object_event_callback_add(e_comp->canvas->resize_object, EVAS_CALLBACK_RESIZE, _comp_site_resize, comp_site);
|
||||||
|
|
|
@ -2068,7 +2068,7 @@ e_modapi_init(E_Module *m)
|
||||||
E_LIST_HANDLER_APPEND(shandlers, E_EVENT_ZONE_DESK_COUNT_SET, _pager_cb_event_zone_desk_count_set, NULL);
|
E_LIST_HANDLER_APPEND(shandlers, E_EVENT_ZONE_DESK_COUNT_SET, _pager_cb_event_zone_desk_count_set, NULL);
|
||||||
E_LIST_HANDLER_APPEND(shandlers, E_EVENT_DESK_SHOW, _pager_cb_event_desk_show, NULL);
|
E_LIST_HANDLER_APPEND(shandlers, E_EVENT_DESK_SHOW, _pager_cb_event_desk_show, NULL);
|
||||||
E_LIST_HANDLER_APPEND(shandlers, E_EVENT_DESK_NAME_CHANGE, _pager_cb_event_desk_name_change, NULL);
|
E_LIST_HANDLER_APPEND(shandlers, E_EVENT_DESK_NAME_CHANGE, _pager_cb_event_desk_name_change, NULL);
|
||||||
E_LIST_HANDLER_APPEND(shandlers, E_EVENT_COMPOSITOR_RESIZE, _pager_cb_event_compositor_resize, NULL);
|
E_LIST_HANDLER_APPEND(shandlers, E_EVENT_COMPOSITOR_UPDATE, _pager_cb_event_compositor_resize, NULL);
|
||||||
E_LIST_HANDLER_APPEND(shandlers, E_EVENT_CLIENT_PROPERTY, _pager_cb_event_client_urgent_change, NULL);
|
E_LIST_HANDLER_APPEND(shandlers, E_EVENT_CLIENT_PROPERTY, _pager_cb_event_client_urgent_change, NULL);
|
||||||
|
|
||||||
module = m;
|
module = m;
|
||||||
|
|
|
@ -2993,7 +2993,7 @@ pager_init(void)
|
||||||
E_LIST_HANDLER_APPEND(ghandlers, E_EVENT_ZONE_DESK_COUNT_SET, _pager_cb_event_zone_desk_count_set, NULL);
|
E_LIST_HANDLER_APPEND(ghandlers, E_EVENT_ZONE_DESK_COUNT_SET, _pager_cb_event_zone_desk_count_set, NULL);
|
||||||
E_LIST_HANDLER_APPEND(ghandlers, E_EVENT_DESK_SHOW, _pager_cb_event_desk_show, NULL);
|
E_LIST_HANDLER_APPEND(ghandlers, E_EVENT_DESK_SHOW, _pager_cb_event_desk_show, NULL);
|
||||||
E_LIST_HANDLER_APPEND(ghandlers, E_EVENT_DESK_NAME_CHANGE, _pager_cb_event_desk_name_change, NULL);
|
E_LIST_HANDLER_APPEND(ghandlers, E_EVENT_DESK_NAME_CHANGE, _pager_cb_event_desk_name_change, NULL);
|
||||||
E_LIST_HANDLER_APPEND(ghandlers, E_EVENT_COMPOSITOR_RESIZE, _pager_cb_event_compositor_resize, NULL);
|
E_LIST_HANDLER_APPEND(ghandlers, E_EVENT_COMPOSITOR_UPDATE, _pager_cb_event_compositor_resize, NULL);
|
||||||
E_LIST_HANDLER_APPEND(ghandlers, E_EVENT_CLIENT_PROPERTY, _pager_cb_event_client_urgent_change, NULL);
|
E_LIST_HANDLER_APPEND(ghandlers, E_EVENT_CLIENT_PROPERTY, _pager_cb_event_client_urgent_change, NULL);
|
||||||
E_LIST_HANDLER_APPEND(ghandlers, E_EVENT_POWERSAVE_UPDATE, _pager_cb_event_powersave_change, NULL);
|
E_LIST_HANDLER_APPEND(ghandlers, E_EVENT_POWERSAVE_UPDATE, _pager_cb_event_powersave_change, NULL);
|
||||||
|
|
||||||
|
|
|
@ -2923,7 +2923,7 @@ e_modapi_init(E_Module *m)
|
||||||
E_LIST_HANDLER_APPEND(pager_config->handlers, E_EVENT_ZONE_DESK_COUNT_SET, _pager_cb_event_zone_desk_count_set, NULL);
|
E_LIST_HANDLER_APPEND(pager_config->handlers, E_EVENT_ZONE_DESK_COUNT_SET, _pager_cb_event_zone_desk_count_set, NULL);
|
||||||
E_LIST_HANDLER_APPEND(pager_config->handlers, E_EVENT_DESK_SHOW, _pager_cb_event_desk_show, NULL);
|
E_LIST_HANDLER_APPEND(pager_config->handlers, E_EVENT_DESK_SHOW, _pager_cb_event_desk_show, NULL);
|
||||||
E_LIST_HANDLER_APPEND(pager_config->handlers, E_EVENT_DESK_NAME_CHANGE, _pager_cb_event_desk_name_change, NULL);
|
E_LIST_HANDLER_APPEND(pager_config->handlers, E_EVENT_DESK_NAME_CHANGE, _pager_cb_event_desk_name_change, NULL);
|
||||||
E_LIST_HANDLER_APPEND(pager_config->handlers, E_EVENT_COMPOSITOR_RESIZE, _pager_cb_event_compositor_resize, NULL);
|
E_LIST_HANDLER_APPEND(pager_config->handlers, E_EVENT_COMPOSITOR_UPDATE, _pager_cb_event_compositor_resize, NULL);
|
||||||
E_LIST_HANDLER_APPEND(pager_config->handlers, E_EVENT_BG_UPDATE, _pager_cb_event_bg_update, NULL);
|
E_LIST_HANDLER_APPEND(pager_config->handlers, E_EVENT_BG_UPDATE, _pager_cb_event_bg_update, NULL);
|
||||||
|
|
||||||
pager_config->module = m;
|
pager_config->module = m;
|
||||||
|
|
|
@ -1856,7 +1856,7 @@ e_modapi_init(E_Module *m)
|
||||||
HANDLER(_G.handler_client_uniconify, CLIENT_UNICONIFY, _iconify_hook);
|
HANDLER(_G.handler_client_uniconify, CLIENT_UNICONIFY, _iconify_hook);
|
||||||
|
|
||||||
HANDLER(_G.handler_desk_set, CLIENT_DESK_SET, _desk_set_hook);
|
HANDLER(_G.handler_desk_set, CLIENT_DESK_SET, _desk_set_hook);
|
||||||
HANDLER(_G.handler_compositor_resize, COMPOSITOR_RESIZE,
|
HANDLER(_G.handler_compositor_resize, COMPOSITOR_UPDATE,
|
||||||
_compositor_resize_hook);
|
_compositor_resize_hook);
|
||||||
HANDLER(_G.handler_desk_show, DESK_SHOW, _desk_shown);
|
HANDLER(_G.handler_desk_show, DESK_SHOW, _desk_shown);
|
||||||
#undef HANDLER
|
#undef HANDLER
|
||||||
|
|
Loading…
Reference in New Issue