{
ec->desk->fullscreen_clients = eina_list_remove(ec->desk->fullscreen_clients, ec);
if (!ec->desk->fullscreen_clients)
- e_comp_render_queue(e_comp);
+ e_comp_render_queue();
}
if (ec->new_client)
e_comp->new_clients--;
e_remember_update(ec);
if (!ec->desk->fullscreen_clients)
- e_comp_render_queue(e_comp);
+ e_comp_render_queue();
}
///////////////////////////////////////
evas_render_dump(c->evas);
DBG("JOB2...");
- e_comp_render_queue(c);
+ e_comp_render_queue();
e_comp_shape_queue_block(c, 1);
ecore_event_add(E_EVENT_COMPOSITOR_DISABLE, NULL, NULL, NULL);
}
#ifndef HAVE_WAYLAND_ONLY
e_comp_x_nocomp_end(c);
#endif
- e_comp_render_queue(c);
+ e_comp_render_queue();
e_comp_shape_queue_block(c, 0);
ecore_event_add(E_EVENT_COMPOSITOR_ENABLE, NULL, NULL, NULL);
}
printf("_e_comp_screensaver_on\n");
ecore_frametime = ecore_animator_frametime_get();
if (e_comp->saver) return ECORE_CALLBACK_RENEW;
- e_comp_override_add(e_comp);
+ e_comp_override_add();
e_comp->saver = EINA_TRUE;
if (e_comp->render_animator)
ecore_animator_freeze(e_comp->render_animator);
printf("_e_comp_screensaver_off\n");
ecore_animator_frametime_set(ecore_frametime);
if (!e_comp->saver) return ECORE_CALLBACK_RENEW;
- e_comp_override_del(e_comp);
+ e_comp_override_del();
e_comp->saver = EINA_FALSE;
if (!e_comp->nocomp)
ecore_evas_manual_render_set(e_comp->ee, EINA_FALSE);
}
EAPI void
-e_comp_render_queue(E_Comp *c)
+e_comp_render_queue()
{
- E_OBJECT_CHECK(c);
- E_OBJECT_TYPE_CHECK(c, E_COMP_TYPE);
+ E_OBJECT_CHECK(e_comp);
+ E_OBJECT_TYPE_CHECK(e_comp, E_COMP_TYPE);
if (conf->lock_fps)
{
- ecore_animator_thaw(c->render_animator);
+ ecore_animator_thaw(e_comp->render_animator);
}
else
{
- if (c->update_job)
+ if (e_comp->update_job)
{
DBG("UPDATE JOB DEL...");
- E_FREE_FUNC(c->update_job, ecore_job_del);
+ E_FREE_FUNC(e_comp->update_job, ecore_job_del);
}
DBG("UPDATE JOB ADD...");
- c->update_job = ecore_job_add(_e_comp_cb_job, c);
+ e_comp->update_job = ecore_job_add(_e_comp_cb_job, e_comp);
}
}
EAPI void
-e_comp_shape_queue(E_Comp *c)
+e_comp_shape_queue()
{
- EINA_SAFETY_ON_NULL_RETURN(c);
+ EINA_SAFETY_ON_NULL_RETURN(e_comp);
- if (c->comp_type != E_PIXMAP_TYPE_X) return;
- if (!c->shape_job)
- c->shape_job = ecore_job_add((Ecore_Cb)_e_comp_shapes_update_job, c);
+ if (e_comp->comp_type != E_PIXMAP_TYPE_X) return;
+ if (!e_comp->shape_job)
+ e_comp->shape_job = ecore_job_add((Ecore_Cb)_e_comp_shapes_update_job, e_comp);
}
EAPI void
-e_comp_shape_queue_block(E_Comp *c, Eina_Bool block)
+e_comp_shape_queue_block(Eina_Bool block)
{
- EINA_SAFETY_ON_NULL_RETURN(c);
+ EINA_SAFETY_ON_NULL_RETURN(e_comp);
- c->shape_queue_blocked = !!block;
+ e_comp->shape_queue_blocked = !!block;
if (block)
- E_FREE_FUNC(c->shape_job, ecore_job_del);
+ E_FREE_FUNC(e_comp->shape_job, ecore_job_del);
else
- e_comp_shape_queue(c);
+ e_comp_shape_queue();
}
EAPI E_Comp_Config *
}
EAPI Ecore_Window
-e_comp_top_window_at_xy_get(E_Comp *c, Evas_Coord x, Evas_Coord y)
+e_comp_top_window_at_xy_get(Evas_Coord x, Evas_Coord y)
{
E_Client *ec;
Evas_Object *o;
- EINA_SAFETY_ON_NULL_RETURN_VAL(c, 0);
- o = evas_object_top_at_xy_get(c->evas, x, y, 0, 0);
- if (!o) return c->ee_win;
+ EINA_SAFETY_ON_NULL_RETURN_VAL(e_comp, 0);
+ o = evas_object_top_at_xy_get(e_comp->evas, x, y, 0, 0);
+ if (!o) return e_comp->ee_win;
ec = evas_object_data_get(o, "E_Client");
if (ec) return e_client_util_pwin_get(ec);
- return c->ee_win;
+ return e_comp->ee_win;
}
EAPI void
-e_comp_util_wins_print(const E_Comp *c EINA_UNUSED)
+e_comp_util_wins_print()
{
Evas_Object *o;
}
EAPI void
-e_comp_override_del(E_Comp *c)
+e_comp_override_del()
{
- c->nocomp_override--;
- if (c->nocomp_override <= 0)
+ e_comp->nocomp_override--;
+ if (e_comp->nocomp_override <= 0)
{
- c->nocomp_override = 0;
- if (c->nocomp_want) _e_comp_cb_nocomp_begin(c);
+ e_comp->nocomp_override = 0;
+ if (e_comp->nocomp_want) _e_comp_cb_nocomp_begin(e_comp);
}
}
EAPI void
-e_comp_override_add(E_Comp *c)
+e_comp_override_add()
{
- c->nocomp_override++;
- if ((c->nocomp_override > 0) && (c->nocomp)) _e_comp_cb_nocomp_end(c);
+ e_comp->nocomp_override++;
+ if ((e_comp->nocomp_override > 0) && (e_comp->nocomp)) _e_comp_cb_nocomp_end(e_comp);
}
#if 0
}
EAPI void
-e_comp_override_timed_pop(E_Comp *c)
+e_comp_override_timed_pop()
{
- EINA_SAFETY_ON_NULL_RETURN(c);
- if (c->nocomp_override <= 0) return;
- if (c->nocomp_override_timer)
- c->nocomp_override--;
+ EINA_SAFETY_ON_NULL_RETURN(e_comp);
+ if (e_comp->nocomp_override <= 0) return;
+ if (e_comp->nocomp_override_timer)
+ e_comp->nocomp_override--;
else
- c->nocomp_override_timer = ecore_timer_add(1.0, _e_comp_override_expire, c);
+ e_comp->nocomp_override_timer = ecore_timer_add(1.0, _e_comp_override_expire, e_comp);
}
EAPI unsigned int
}
EAPI Eina_Bool
-e_comp_grab_input(E_Comp *c, Eina_Bool mouse, Eina_Bool kbd)
+e_comp_grab_input(Eina_Bool mouse, Eina_Bool kbd)
{
Eina_Bool ret = EINA_FALSE;
Ecore_Window mwin = 0, kwin = 0;
mouse = !!mouse;
kbd = !!kbd;
- if (mouse || c->input_mouse_grabs)
- mwin = c->ee_win;
- if (kbd || c->input_mouse_grabs)
- kwin = c->ee_win;
- e_comp_override_add(c);
- if ((c->input_mouse_grabs && c->input_key_grabs) ||
+ if (mouse || e_comp->input_mouse_grabs)
+ mwin = e_comp->ee_win;
+ if (kbd || e_comp->input_mouse_grabs)
+ kwin = e_comp->ee_win;
+ e_comp_override_add();
+ if ((e_comp->input_mouse_grabs && e_comp->input_key_grabs) ||
e_grabinput_get(mwin, 0, kwin))
{
ret = EINA_TRUE;
- c->input_mouse_grabs += mouse;
- c->input_key_grabs += kbd;
+ e_comp->input_mouse_grabs += mouse;
+ e_comp->input_key_grabs += kbd;
}
return ret;
}
EAPI void
-e_comp_ungrab_input(E_Comp *c, Eina_Bool mouse, Eina_Bool kbd)
+e_comp_ungrab_input(Eina_Bool mouse, Eina_Bool kbd)
{
Ecore_Window mwin = 0, kwin = 0;
mouse = !!mouse;
kbd = !!kbd;
- if (mouse && (c->input_mouse_grabs == 1))
- mwin = c->ee_win;
- if (kbd && (c->input_key_grabs == 1))
- kwin = c->ee_win;
- if (c->input_mouse_grabs)
- c->input_mouse_grabs -= mouse;
- if (c->input_key_grabs)
- c->input_key_grabs -= kbd;
- e_comp_override_timed_pop(c);
+ if (mouse && (e_comp->input_mouse_grabs == 1))
+ mwin = e_comp->ee_win;
+ if (kbd && (e_comp->input_key_grabs == 1))
+ kwin = e_comp->ee_win;
+ if (e_comp->input_mouse_grabs)
+ e_comp->input_mouse_grabs -= mouse;
+ if (e_comp->input_key_grabs)
+ e_comp->input_key_grabs -= kbd;
+ e_comp_override_timed_pop();
if ((!mwin) && (!kwin)) return;
e_grabinput_release(mwin, kwin);
- evas_event_feed_mouse_out(c->evas, 0, NULL);
- evas_event_feed_mouse_in(c->evas, 0, NULL);
+ evas_event_feed_mouse_out(e_comp->evas, 0, NULL);
+ evas_event_feed_mouse_in(e_comp->evas, 0, NULL);
if (e_client_focused_get()) return;
if (e_config->focus_policy != E_FOCUS_MOUSE)
e_client_refocus();
ec->unredirected_single = !ec->unredirected_single;
e_client_redirected_set(ec, !ec->redirected);
ec->no_shape_cut = !ec->redirected;
- e_comp_shape_queue(e_comp);
+ e_comp_shape_queue();
}
EAPI Eina_Bool
EAPI E_Comp *e_comp_new(void);
EAPI int e_comp_internal_save(void);
EINTERN int e_comp_shutdown(void);
-EAPI void e_comp_render_queue(E_Comp *c);
-EAPI void e_comp_shape_queue(E_Comp *c);
-EAPI void e_comp_shape_queue_block(E_Comp *c, Eina_Bool block);
+EAPI void e_comp_render_queue(void);
+EAPI void e_comp_shape_queue(void);
+EAPI void e_comp_shape_queue_block(Eina_Bool block);
EAPI E_Comp_Config *e_comp_config_get(void);
EAPI const Eina_List *e_comp_list(void);
EAPI void e_comp_shadows_reset(void);
-EAPI Ecore_Window e_comp_top_window_at_xy_get(E_Comp *c, Evas_Coord x, Evas_Coord y);
-EAPI void e_comp_util_wins_print(const E_Comp *c);
+EAPI Ecore_Window e_comp_top_window_at_xy_get(Evas_Coord x, Evas_Coord y);
+EAPI void e_comp_util_wins_print(void);
EAPI void e_comp_ignore_win_add(E_Pixmap_Type type, Ecore_Window win);
EAPI void e_comp_ignore_win_del(E_Pixmap_Type type, Ecore_Window win);
EAPI Eina_Bool e_comp_ignore_win_find(Ecore_Window win);
-EAPI void e_comp_override_del(E_Comp *c);
-EAPI void e_comp_override_add(E_Comp *c);
+EAPI void e_comp_override_del(void);
+EAPI void e_comp_override_add(void);
EAPI void e_comp_block_window_add(void);
EAPI void e_comp_block_window_del(void);
EAPI E_Comp *e_comp_find_by_window(Ecore_Window win);
-EAPI void e_comp_override_timed_pop(E_Comp *c);
+EAPI void e_comp_override_timed_pop(void);
EAPI unsigned int e_comp_e_object_layer_get(const E_Object *obj);
-EAPI Eina_Bool e_comp_grab_input(E_Comp *c, Eina_Bool mouse, Eina_Bool kbd);
-EAPI void e_comp_ungrab_input(E_Comp *c, Eina_Bool mouse, Eina_Bool kbd);
+EAPI Eina_Bool e_comp_grab_input(Eina_Bool mouse, Eina_Bool kbd);
+EAPI void e_comp_ungrab_input(Eina_Bool mouse, Eina_Bool kbd);
EAPI void e_comp_gl_set(Eina_Bool set);
EAPI Eina_Bool e_comp_gl_get(void);
conf->fps_show = !conf->fps_show;
e_comp_internal_save();
- e_comp_render_queue(e_comp);
+ e_comp_render_queue();
}
EAPI E_Layer
if (cw->defer_hide && (!strcmp(emission, "e,action,hide,done")))
evas_object_hide(cw->smart_obj);
else if (!cw->animating)
- e_comp_shape_queue(e_comp);
+ e_comp_shape_queue();
}
/////////////////////////////////////////////
if (cw->visible)
{
- e_comp_shape_queue(e_comp);
- e_comp_render_queue(e_comp);
+ e_comp_shape_queue();
+ e_comp_render_queue();
}
ec = e_client_above_get(cw->ec);
if (ec && (evas_object_layer_get(ec->frame) != evas_object_layer_get(obj)))
CRI("STACKING ERROR!!!");
}
if (!cw->visible) return;
- e_comp_render_queue(e_comp);
- e_comp_shape_queue(e_comp);
+ e_comp_render_queue();
+ e_comp_shape_queue();
}
typedef void (*E_Comp_Object_Stack_Func)(Evas_Object *obj, Evas_Object *stack);
if (cw->ec->new_client || (!ecstack) || (ecstack->frame != o))
evas_object_data_del(cw->smart_obj, "client_restack");
if (!cw->visible) return;
- e_comp_render_queue(e_comp);
- e_comp_shape_queue(e_comp);
+ e_comp_render_queue();
+ e_comp_shape_queue();
}
static void
evas_object_lower(obj);
evas_object_data_del(obj, "client_restack");
if (!cw->visible) return;
- e_comp_render_queue(e_comp);
- e_comp_shape_queue(e_comp);
+ e_comp_render_queue();
+ e_comp_shape_queue();
}
static void
e_client_raise_latest_set(cw->ec); //modify raise list if necessary
}
if (!cw->visible) return;
- e_comp_render_queue(e_comp);
- e_comp_shape_queue(e_comp);
+ e_comp_render_queue();
+ e_comp_shape_queue();
}
static void
/* ensure focus-out */
if (cw->ec->focused)
evas_object_focus_set(cw->ec->frame, 0);
- e_comp_render_queue(e_comp); //force nocomp recheck
- e_comp_shape_queue(e_comp);
+ e_comp_render_queue(); //force nocomp recheck
+ e_comp_shape_queue();
}
static void
evas_object_show(cw->effect_obj);
if (cw->ec->internal_elm_win && (!evas_object_visible_get(cw->ec->internal_elm_win)))
evas_object_show(cw->ec->internal_elm_win);
- e_comp_render_queue(e_comp);
+ e_comp_render_queue();
if (cw->ec->input_only)
{
- e_comp_shape_queue(e_comp);
+ e_comp_shape_queue();
return;
}
if (cw->ec->iconic && (!cw->ec->new_client))
if (!cw->animating)
{
e_comp_object_effect_set(obj, NULL);
- e_comp_shape_queue(e_comp);
+ e_comp_shape_queue();
}
}
evas_object_del(cw->zoomobj);
evas_object_del(cw->input_obj);
evas_object_del(cw->obj);
- e_comp_shape_queue(e_comp);
+ e_comp_shape_queue();
eina_stringshare_del(cw->frame_theme);
eina_stringshare_del(cw->frame_name);
free(cw);
evas_object_geometry_set(cw->input_obj, cw->x + cw->input_rect.x, cw->y + cw->input_rect.y, cw->input_rect.w, cw->input_rect.h);
/* this gets called once during setup to init coords offscreen and guarantee first move */
if (e_comp && cw->visible)
- e_comp_shape_queue(e_comp);
+ e_comp_shape_queue();
}
static void
evas_object_resize(cw->effect_obj, w, h);
}
if (!cw->visible) return;
- e_comp_render_queue(e_comp);
+ e_comp_render_queue();
if (!cw->animating)
- e_comp_shape_queue(e_comp);
+ e_comp_shape_queue();
}
static void
o = edje_object_part_swallow_get(obj, "e.swallow.content");
evas_object_del(o);
- e_comp_render_queue(e_comp);
- e_comp_shape_queue(e_comp);
+ e_comp_render_queue();
+ e_comp_shape_queue();
}
l = evas_object_data_get(obj, "comp_object-to_del");
E_FREE_LIST(l, evas_object_del);
(!evas_object_data_get(obj, "comp_override")))
{
evas_object_data_set(obj, "comp_override", (void*)1);
- e_comp_override_add(e_comp);
+ e_comp_override_add();
}
}
return;
}
else
- e_comp_shape_queue(e_comp);
+ e_comp_shape_queue();
evas_object_show(obj);
if (ref)
if (e_comp_util_object_is_above_nocomp(obj))
{
evas_object_data_set(obj, "comp_override", (void*)1);
- e_comp_override_add(e_comp);
+ e_comp_override_add();
}
}
evas_object_data_set(obj, "comp_hiding", (void*)1);
if (evas_object_data_del(obj, "comp_override"))
- e_comp_override_timed_pop(e_comp);
+ e_comp_override_timed_pop();
}
static void
if (!evas_object_data_del(obj, "comp_hiding")) return;
evas_object_intercept_hide_callback_del(obj, _e_comp_object_util_hide);
evas_object_hide(obj);
- e_comp_shape_queue(e_comp);
+ e_comp_shape_queue();
evas_object_intercept_hide_callback_add(obj, _e_comp_object_util_hide, data);
}
else
}
if (evas_object_visible_get(obj))
- e_comp_shape_queue(e_comp);
+ e_comp_shape_queue();
}
EAPI Evas_Object *
cw->update = 1;
e_comp->updates = eina_list_append(e_comp->updates, cw->ec);
}
- e_comp_render_queue(e_comp);
+ e_comp_render_queue();
}
EAPI void
e_comp->animating--;
cw->animating--;
if (e_object_unref(E_OBJECT(cw->ec)))
- e_comp_shape_queue(e_comp);
+ e_comp_shape_queue();
}
end_cb = evas_object_data_get(obj, "_e_comp.end_cb");
e_comp->autoclose.del_cb = NULL;
e_comp->autoclose.key_cb = NULL;
E_FREE_FUNC(e_comp->autoclose.key_handler, ecore_event_handler_del);
- e_comp_shape_queue(e_comp);
+ e_comp_shape_queue();
}
static Eina_Bool
e_comp_grab_input(e_comp, 0, 1);
}
evas_object_layer_set(e_comp->autoclose.rect, evas_object_layer_get(obj) - 1);
- e_comp_shape_queue(e_comp);
+ e_comp_shape_queue();
if (!e_comp->autoclose.key_handler)
e_comp->autoclose.key_handler = ecore_event_handler_add(ECORE_EVENT_KEY_DOWN, _e_comp_object_autoclose_key_down_cb, e_comp);
}
if (ec->need_shape_export)
{
// ec->shape_changed = EINA_TRUE;
- e_comp_shape_queue(e_comp);
+ e_comp_shape_queue();
ec->need_shape_export = EINA_FALSE;
}
}
E_Comp *c;
c = e_comp_find_by_window(ev->win);
- if (c) e_comp_render_queue(c);
+ if (c) e_comp_render_queue();
return ECORE_CALLBACK_PASS_ON;
}
ec->shape_rects = (Eina_Rectangle*)rects;
ec->shape_rects_num = num;
ec->shape_changed = 1;
- e_comp_shape_queue(e_comp);
+ e_comp_shape_queue();
}
else
free(rects);
if (changed || (pshaped != ec->shaped_input))
{
ec->need_shape_merge = 1;
- e_comp_shape_queue(e_comp);
+ e_comp_shape_queue();
}
}
if (ec->changes.prop || ec->mwm.fetch.hints)
ecore_x_window_show(e_comp->x_comp_data->lock_grab_break_wnd);
e_comp->x_comp_data->lock_grab_break_wnd = 0;
E_FREE_FUNC(e_comp->x_comp_data->lock_key_handler, ecore_event_handler_del);
- e_comp_override_del(e_comp);
+ e_comp_override_del();
}
static Eina_Bool
free(windows);
}
works:
- e_comp_override_add(e_comp);
+ e_comp_override_add();
e_comp_ignore_win_add(E_PIXMAP_TYPE_X, e_comp->x_comp_data->lock_win);
e_comp->x_comp_data->lock_key_handler =
ecore_event_handler_add(ECORE_EVENT_KEY_DOWN, (Ecore_Event_Handler_Cb)_e_comp_x_desklock_key_down, e_comp);
ecore_event_add(E_EVENT_DESK_AFTER_SHOW, ev,
_e_desk_event_desk_after_show_free, NULL);
- e_comp_shape_queue(e_comp);
+ e_comp_shape_queue();
if (!e_config->focus_last_focused_per_desktop) return;
if ((e_config->focus_policy == E_FOCUS_MOUSE) ||
(e_config->focus_policy == E_FOCUS_SLOPPY))
if ((!_e_desklock_state) && (!_e_custom_desklock_exe)) return;
- e_comp_override_del(e_comp);
- e_comp_shape_queue(e_comp);
+ e_comp_override_del();
+ e_comp_shape_queue();
E_FREE_LIST(block_rects, evas_object_del);
//e_comp_block_window_del();
if (e_config->desklock_language)
e_init_hide(void)
{
E_FREE_LIST(splash_objs, evas_object_del);
- e_comp_shape_queue(e_comp);
+ e_comp_shape_queue();
_e_init_object = NULL;
E_FREE_FUNC(_e_init_timeout_timer, ecore_timer_del);
}
evas_object_layer_set(o, E_LAYER_POPUP);
evas_object_show(o);
evas_object_event_callback_add(o, EVAS_CALLBACK_MOUSE_DOWN, cb, ec);
- e_comp_shape_queue(e_comp);
+ e_comp_shape_queue();
}
static Evas_Object *
{
evas_object_hide(obj);
evas_object_del(obj);
- e_comp_shape_queue(e_comp);
+ e_comp_shape_queue();
return evas_object_top_at_xy_get(e, ev->output.x, ev->output.y, 0, 0);
}
E_Zone *zone;
Eina_Bool first = EINA_TRUE;
- if (nocomp_push) e_comp_override_add(e_comp);
- else e_comp_override_timed_pop(e_comp);
+ if (nocomp_push) e_comp_override_add();
+ else e_comp_override_timed_pop();
printf("_e_sys_comp_emit_cb_wait - [%x] %s %s\n", a, sig, rep);
EINA_LIST_FOREACH(e_comp->zones, l, zone)
{
if (popup->pending) return;
popups_displayed--;
free(popup);
- e_comp_shape_queue(e_comp);
+ e_comp_shape_queue();
}
static void
if (ec->visible && (!ec->input_only))
e_comp_object_damage(ec->frame, 0, 0, ec->w, ec->h);
}
- e_comp_render_queue(c);
+ e_comp_render_queue();
e_comp_shape_queue_block(c, 0);
ecore_event_add(E_EVENT_COMPOSITOR_ENABLE, NULL, NULL, NULL);
}
evas_font_cache_flush(c->evas);
evas_render_dump(c->evas);
- e_comp_render_queue(c);
+ e_comp_render_queue();
e_comp_shape_queue_block(c, 1);
ecore_event_add(E_EVENT_COMPOSITOR_DISABLE, NULL, NULL, NULL);
}