desk_current = e_desk_current_get(ec->zone);
- E_CLIENT_FOREACH(ec->comp, cur)
+ E_CLIENT_FOREACH(e_comp, cur)
{
if (((cur->desk == desk_current) || (cur->sticky)) && (ec != cur) && (!cur->iconic))
{
if (!ec->e.state.profile.use) return;
- new_desk = e_comp_desk_window_profile_get(ec->comp, desk->window_profile);
+ new_desk = e_comp_desk_window_profile_get(e_comp, desk->window_profile);
if (new_desk)
e_client_desk_set(ec, new_desk);
else
for (i = 0; i < ec->e.state.profile.num; i++)
{
p = ec->e.state.profile.available_list[i];
- new_desk = e_comp_desk_window_profile_get(ec->comp, p);
+ new_desk = e_comp_desk_window_profile_get(e_comp, p);
if (new_desk)
{
e_client_desk_set(ec, new_desk);
int x, y;
double spd;
- ecore_evas_pointer_xy_get(warp_client->comp->ee, &x, &y);
+ ecore_evas_pointer_xy_get(e_comp->ee, &x, &y);
/* move hasn't happened yet */
if ((x == warp_x[1]) && (y == warp_y[1]))
return EINA_TRUE;
warp_to = 0;
goto cleanup;
}
- ecore_evas_pointer_warp(warp_client->comp->ee, warp_x[0], warp_y[0]);
+ ecore_evas_pointer_warp(e_comp->ee, warp_x[0], warp_y[0]);
return ECORE_CALLBACK_RENEW;
}
cleanup:
{
ec->desk->fullscreen_clients = eina_list_remove(ec->desk->fullscreen_clients, ec);
if (!ec->desk->fullscreen_clients)
- e_comp_render_queue(ec->comp);
+ e_comp_render_queue(e_comp);
}
if (ec->new_client)
- ec->comp->new_clients--;
+ e_comp->new_clients--;
if (ec->e.state.profile.use)
{
e_client_desk_window_profile_wait_desk_set(ec, NULL);
ec->cur_mouse_action->func.end(E_OBJECT(ec), "");
}
if (action_client == ec) _e_client_action_finish();
- e_pointer_type_pop(ec->comp->pointer, ec, NULL);
+ e_pointer_type_pop(e_comp->pointer, ec, NULL);
if (warp_client == ec)
{
child->leader = NULL;
eina_hash_del_by_key(clients_hash, &ec->pixmap);
- ec->comp->clients = eina_list_remove(ec->comp->clients, ec);
+ e_comp->clients = eina_list_remove(e_comp->clients, ec);
e_comp_object_render_update_del(ec->frame);
if (e_pixmap_free(ec->pixmap))
e_pixmap_client_set(ec->pixmap, NULL);
///////////////////////////////////////////
static int
-_e_client_action_input_win_new(E_Client *ec)
+_e_client_action_input_win_new(void)
{
if (comp_grabbed)
{
CRI("DOUBLE COMP GRAB! ACK!!!!");
return 1;
}
- comp_grabbed = e_comp_grab_input(ec->comp, 1, 1);
- if (!comp_grabbed) _e_client_action_input_win_del(ec->comp);
+ comp_grabbed = e_comp_grab_input(e_comp, 1, 1);
+ if (!comp_grabbed) _e_client_action_input_win_del(e_comp);
return comp_grabbed;
}
return 0;
}
*/
- if (!_e_client_action_input_win_new(ec)) return 0;
+ if (!_e_client_action_input_win_new()) return 0;
ec->moving = 1;
ecmove = ec;
_e_client_hook_call(E_CLIENT_HOOK_MOVE_BEGIN, ec);
if (!ec->moving)
{
if (ecmove == ec) ecmove = NULL;
- _e_client_action_input_win_del(ec->comp);
+ _e_client_action_input_win_del(e_comp);
return 0;
}
if (!ec->lock_user_stacking)
//e_grabinput_release(e_client_util_pwin_get(ec), e_client_util_pwin_get(ec));
//client_grabbed = 0;
//}
- _e_client_action_input_win_del(ec->comp);
+ _e_client_action_input_win_del(e_comp);
e_pointer_mode_pop(ec, E_POINTER_MOVE);
ec->moving = 0;
_e_client_hook_call(E_CLIENT_HOOK_MOVE_END, ec);
y += (th - h);
skiplist = eina_list_append(skiplist, ec);
- e_resist_client_position(ec->comp, skiplist,
+ e_resist_client_position(e_comp, skiplist,
ec->x, ec->y, ec->w, ec->h,
x, y, w, h,
&new_x, &new_y, &new_w, &new_h);
static int
_e_client_resize_end(E_Client *ec)
{
- _e_client_action_input_win_del(ec->comp);
+ _e_client_action_input_win_del(e_comp);
e_pointer_mode_pop(ec, ec->resize_mode);
ec->resize_mode = E_POINTER_RESIZE_NONE;
{
E_Client *ec = NULL, *cec;
- E_CLIENT_REVERSE_FOREACH(desk->zone->comp, cec)
+ E_CLIENT_REVERSE_FOREACH(e_comp, cec)
{
/* If a border was specified which should be excluded from the list
* (because it will be closed shortly for example), skip */
w = ec->zone->w;
h = ec->zone->h;
- if (eina_list_count(ec->comp->zones) == 1)
+ if (eina_list_count(e_comp->zones) == 1)
{
if (zx) *zx = x;
if (zy) *zy = y;
return;
}
- zone_left = e_comp_zone_xy_get(ec->comp, (x - w + 5), y);
- zone_right = e_comp_zone_xy_get(ec->comp, (x + w + 5), y);
- zone_above = e_comp_zone_xy_get(ec->comp, x, (y - h + 5));
- zone_below = e_comp_zone_xy_get(ec->comp, x, (y + h + 5));
+ zone_left = e_comp_zone_xy_get(e_comp, (x - w + 5), y);
+ zone_right = e_comp_zone_xy_get(e_comp, (x + w + 5), y);
+ zone_above = e_comp_zone_xy_get(e_comp, x, (y - h + 5));
+ zone_below = e_comp_zone_xy_get(e_comp, x, (y + h + 5));
if (!(zone_above) && (y))
- zone_above = e_comp_zone_xy_get(ec->comp, x, (h - 5));
+ zone_above = e_comp_zone_xy_get(e_comp, x, (h - 5));
if (!(zone_left) && (x))
- zone_left = e_comp_zone_xy_get(ec->comp, (x - 5), y);
+ zone_left = e_comp_zone_xy_get(e_comp, (x - 5), y);
if (zone_right)
w = zone_right->x + zone_right->w;
ec->zone->x, ec->zone->y, ec->zone->w, ec->zone->h))
return;
/* find a new zone */
- EINA_LIST_FOREACH(ec->comp->zones, l, zone)
+ EINA_LIST_FOREACH(e_comp->zones, l, zone)
{
if (E_INTERSECTS(ec->x, ec->y, ec->w, ec->h,
zone->x, zone->y, zone->w, zone->h))
E_FREE_FUNC(ec->cur_mouse_action, e_object_unref);
}
if (action_client == ec) _e_client_action_finish();
- e_pointer_type_pop(ec->comp->pointer, ec, NULL);
+ e_pointer_type_pop(e_comp->pointer, ec, NULL);
if (!ec->hidden)
{
{
if (ec->parent)
{
- if (ec->parent->zone != e_zone_current_get(ec->parent->comp))
+ if (ec->parent->zone != e_zone_current_get(e_comp))
{
e_client_zone_set(ec, ec->parent->zone);
e_zone_useful_geometry_get(ec->zone, &zx, &zy, &zw, &zh);
x = MAX(ec->x, 0);
y = MAX(ec->y, 0);
if ((!ec->re_manage) && ((ec->x != x) || (ec->y != y)))
- zone = e_comp_zone_xy_get(ec->comp, x, y);
+ zone = e_comp_zone_xy_get(e_comp, x, y);
if (!zone)
{
- zone = e_comp_zone_xy_get(ec->comp, ec->x + (ec->w / 2), ec->y + (ec->h / 2));
+ zone = e_comp_zone_xy_get(e_comp, ec->x + (ec->w / 2), ec->y + (ec->h / 2));
if (zone)
{
- E_Zone *z2 = e_comp_zone_xy_get(ec->comp, ec->x, ec->y);
+ E_Zone *z2 = e_comp_zone_xy_get(e_comp, ec->x, ec->y);
if (z2 && (z2 != zone))
{
E_Zone *zf = z2;
Eina_List *l;
- EINA_LIST_FOREACH(ec->comp->zones, l, z2)
+ EINA_LIST_FOREACH(e_comp->zones, l, z2)
{
int w, h;
}
}
if (!zone)
- zone = e_comp_zone_xy_get(ec->comp, ec->x, ec->y);
+ zone = e_comp_zone_xy_get(e_comp, ec->x, ec->y);
if (!zone)
- zone = e_comp_zone_xy_get(ec->comp, ec->x + ec->w - 1, ec->y);
+ zone = e_comp_zone_xy_get(e_comp, ec->x + ec->w - 1, ec->y);
if (!zone)
- zone = e_comp_zone_xy_get(ec->comp, ec->x + ec->w - 1, ec->y + ec->h - 1);
+ zone = e_comp_zone_xy_get(e_comp, ec->x + ec->w - 1, ec->y + ec->h - 1);
if (!zone)
- zone = e_comp_zone_xy_get(ec->comp, ec->x, ec->y + ec->h - 1);
+ zone = e_comp_zone_xy_get(e_comp, ec->x, ec->y + ec->h - 1);
if ((zone) && (zone != ec->zone))
e_client_zone_set(ec, zone);
}
{
int x, y;
- ecore_evas_pointer_xy_get(ec->comp->ee, &x, &y);
+ ecore_evas_pointer_xy_get(e_comp->ee, &x, &y);
if ((!ec->placed) && (!ec->re_manage) &&
(e_config->window_placement_policy == E_WINDOW_PLACEMENT_MANUAL) &&
(!((ec->icccm.transient_for != 0) ||
}
ec->new_client = 0;
- ec->comp->new_clients--;
+ e_comp->new_clients--;
ec->changed = ec->changes.pos || ec->changes.size ||
ec->changes.stack || ec->changes.prop || ec->changes.border ||
ec->changes.reset_gravity || ec->changes.shading || ec->changes.shaded ||
}
if ((!ec->new_client) && (!e_client_util_ignored_get(ec)) &&
- (!E_INSIDE(ec->x, ec->y, 0, 0, ec->comp->man->w - 5, ec->comp->man->h - 5)) &&
- (!E_INSIDE(ec->x, ec->y, 0 - ec->w + 5, 0 - ec->h + 5, ec->comp->man->w - 5, ec->comp->man->h - 5))
+ (!E_INSIDE(ec->x, ec->y, 0, 0, e_comp->man->w - 5, e_comp->man->h - 5)) &&
+ (!E_INSIDE(ec->x, ec->y, 0 - ec->w + 5, 0 - ec->h + 5, e_comp->man->w - 5, e_comp->man->h - 5))
)
{
if (e_config->screen_limits != E_CLIENT_OFFSCREEN_LIMIT_ALLOW_FULL)
ec->w = 1;
ec->h = 1;
ec->internal = internal;
- ec->comp = e_comp;
+ e_comp = e_comp;
ec->pixmap = cp;
e_pixmap_client_set(cp, ec);
}
ec->offer_resistance = 1;
ec->new_client = 1;
- ec->comp->new_clients++;
+ e_comp->new_clients++;
if (!_e_client_hook_call(E_CLIENT_HOOK_NEW_CLIENT, ec))
{
e_comp_object_frame_xy_adjust(ec->frame, x, y, &new_x, &new_y);
skiplist = eina_list_append(skiplist, ec);
- e_resist_client_position(ec->comp, skiplist,
+ e_resist_client_position(e_comp, skiplist,
ec->x, ec->y, ec->w, ec->h,
x, y, ec->w, ec->h,
&new_x, &new_y, &new_w, &new_h);
e_object_ref(E_OBJECT(ec));
e_comp_object_frame_icon_geometry_get(ec->frame, &x, &y, &w, &h);
- client_drag = e_drag_new(ec->zone->comp,
+ client_drag = e_drag_new(e_comp,
output->x, output->y,
drag_types, 1, ec, -1,
NULL,
/* go up the layers until we find one */
for (x = e_comp_canvas_layer_map(ec->layer) + 1; x <= e_comp_canvas_layer_map(E_LAYER_CLIENT_PRIO); x++)
{
- if (!ec->comp->layers[x].clients) continue;
- EINA_INLIST_FOREACH(ec->comp->layers[x].clients, ec2)
+ if (!e_comp->layers[x].clients) continue;
+ EINA_INLIST_FOREACH(e_comp->layers[x].clients, ec2)
if (!e_object_is_del(E_OBJECT(ec2)))
return ec2;
}
/* go down the layers until we find one */
for (x = e_comp_canvas_layer_map(ec->layer) - 1; x >= e_comp_canvas_layer_map(E_LAYER_CLIENT_DESKTOP); x--)
{
- if (!ec->comp->layers[x].clients) continue;
- EINA_INLIST_REVERSE_FOREACH(ec->comp->layers[x].clients, ec2)
+ if (!e_comp->layers[x].clients) continue;
+ EINA_INLIST_REVERSE_FOREACH(e_comp->layers[x].clients, ec2)
if (!e_object_is_del(E_OBJECT(ec2)))
return ec2;
}
EINA_LIST_FOREACH(e_client_focus_stack_get(), l, ec)
if (ec->desk && ec->desk->visible && (!ec->iconic))
{
- if (ec->comp->input_key_grabs || ec->comp->input_mouse_grabs) break;
+ if (e_comp->input_key_grabs || e_comp->input_mouse_grabs) break;
evas_object_focus_set(ec->frame, 1);
break;
}
/* if there unfocus client is fullscreen and visible */
if ((!e_config->allow_above_fullscreen) &&
(ec_unfocus->fullscreen) && (!ec_unfocus->iconic) && (!ec_unfocus->hidden) &&
- (ec_unfocus->zone == e_zone_current_get(ec_unfocus->comp)) &&
+ (ec_unfocus->zone == e_zone_current_get(e_comp)) &&
((ec_unfocus->desk == e_desk_current_get(ec_unfocus->zone)) || (ec_unfocus->sticky)))
{
Eina_Bool have_vis_child = EINA_FALSE;
if (!focus_track_frozen)
e_client_focus_latest_set(ec);
- e_hints_active_window_set(ec->comp->man, ec);
+ e_hints_active_window_set(e_comp->man, ec);
_e_client_event_simple(ec, E_EVENT_CLIENT_FOCUS_IN);
}
if ((e_config->focus_policy != E_FOCUS_CLICK) && (!ec->new_client) &&
(!e_config->disable_all_pointer_warps) &&
(!e_util_strcmp(ec->icccm.name, "VCLSalFrame")))
- ecore_evas_pointer_warp(ec->comp->ee,
+ ecore_evas_pointer_warp(e_comp->ee,
ec->x + (ec->w / 2), ec->y + (ec->h / 2));
evas_object_focus_set(ec->frame, 1);
}
ec->fullscreen = 1;
#ifndef HAVE_WAYLAND_ONLY
- if ((eina_list_count(ec->comp->zones) > 1) ||
+ if ((eina_list_count(e_comp->zones) > 1) ||
(policy == E_FULLSCREEN_RESIZE) || (!ecore_x_randr_query()))
#else
- if ((eina_list_count(ec->comp->zones) > 1) ||
+ if ((eina_list_count(e_comp->zones) > 1) ||
(policy == E_FULLSCREEN_RESIZE))
#endif
{
e_remember_update(ec);
if (!ec->desk->fullscreen_clients)
- e_comp_render_queue(ec->comp);
+ e_comp_render_queue(e_comp);
}
///////////////////////////////////////
{
int x, y;
- evas_pointer_canvas_xy_get(ec->comp->evas, &x, &y);
+ evas_pointer_canvas_xy_get(e_comp->evas, &x, &y);
e_int_client_menu_show(ec, x, y, key, 0);
}
}
if ((ec->shaded) || (ec->shading) ||
(ec->fullscreen) || (ec->lock_user_size))
goto error;
- if (!_e_client_action_input_win_new(ec)) goto error;
+ if (!_e_client_action_input_win_new()) goto error;
ecresize = ec;
_e_client_hook_call(E_CLIENT_HOOK_RESIZE_BEGIN, ec);
if (!e_client_util_resizing_get(ec))
{
if (ecresize == ec) ecresize = NULL;
- _e_client_action_input_win_del(ec->comp);
+ _e_client_action_input_win_del(e_comp);
return EINA_FALSE;
}
if (!ec->lock_user_stacking)
if (exclude->zone)
desk = e_desk_current_get(exclude->zone);
else
- desk = e_desk_current_get(e_zone_current_get(exclude->comp));
+ desk = e_desk_current_get(e_zone_current_get(e_comp));
}
}
if (e_config->disable_all_pointer_warps) return 0;
if (warp_client == ec)
{
- ecore_evas_pointer_warp(ec->comp->ee, warp_to_x, warp_to_y);
+ ecore_evas_pointer_warp(e_comp->ee, warp_to_x, warp_to_y);
warp_to = 0;
_e_client_pointer_warp_to_center_timer(NULL);
}
if (e_config->disable_all_pointer_warps) return 0;
/* Only warp the pointer if it is not already in the area of
* the given border */
- ecore_evas_pointer_xy_get(ec->comp->ee, &x, &y);
+ ecore_evas_pointer_xy_get(e_comp->ee, &x, &y);
if ((x >= ec->x) && (x <= (ec->x + ec->w)) &&
(y >= ec->y) && (y <= (ec->y + ec->h)))
{
warp_to = 1;
warp_client = ec;
- ecore_evas_pointer_xy_get(warp_client->comp->ee, &warp_x[0], &warp_y[0]);
+ ecore_evas_pointer_xy_get(e_comp->ee, &warp_x[0], &warp_y[0]);
if (warp_timer) ecore_timer_del(warp_timer);
warp_timer = ecore_timer_add(0.01, _e_client_pointer_warp_to_center_timer, ec);
return 1;
EAPI Eina_Bool
e_client_is_stacking(const E_Client *ec)
{
- return ec->comp->layers[e_comp_canvas_layer_map(ec->layer)].obj == ec->frame;
+ return e_comp->layers[e_comp_canvas_layer_map(ec->layer)].obj == ec->frame;
}
////////////////////////////////////////////
EINA_INLIST;
E_Pixmap *pixmap;
- E_Comp *comp;
int depth;
int x, y, w, h; //frame+client geom
struct {
e_pixmap_size_get(ec->pixmap, &pw, &ph);
- if (e_pixmap_dirty_get(ec->pixmap) && (!ec->comp->nocomp))
+ if (e_pixmap_dirty_get(ec->pixmap) && (!e_comp->nocomp))
{
int w, h;
e_comp_object_render_update_add(ec->frame);
}
}
- if ((!ec->comp->saver) && e_pixmap_size_get(ec->pixmap, &pw, &ph))
+ if ((!e_comp->saver) && e_pixmap_size_get(ec->pixmap, &pw, &ph))
{
//INF("PX DIRTY: PX(%dx%d) CLI(%dx%d)", pw, ph, ec->client.w, ec->client.h);
e_pixmap_image_refresh(ec->pixmap);
{
x = rect->x, y = rect->y, w = rect->w, h = rect->h;
x += ec->client.x, y += ec->client.y;
- E_RECTS_CLIP_TO_RECT(x, y, w, h, ec->comp->man->x, ec->comp->man->y, ec->comp->man->w, ec->comp->man->h);
+ E_RECTS_CLIP_TO_RECT(x, y, w, h, e_comp->man->x, e_comp->man->y, e_comp->man->w, e_comp->man->h);
if ((w < 1) || (h < 1)) continue;
//#ifdef SHAPE_DEBUG not sure we can shape check these?
//r = E_NEW(Eina_Rectangle, 1);
ec->unredirected_single = !ec->unredirected_single;
e_client_redirected_set(ec, !ec->redirected);
ec->no_shape_cut = !ec->redirected;
- e_comp_shape_queue(ec->comp);
+ e_comp_shape_queue(e_comp);
}
EAPI Eina_Bool
E_COMP_ENGINE_GL = 2
} E_Comp_Engine;
+extern EAPI E_Comp *e_comp;
+
EINTERN Eina_Bool e_comp_init(void);
EAPI E_Comp *e_comp_new(void);
EAPI int e_comp_internal_save(void);
if ((!ec->visible) || (ec->input_only))
return EINA_FALSE;
return ((ec->client.x == 0) && (ec->client.y == 0) &&
- ((ec->client.w) >= ec->comp->man->w) &&
- ((ec->client.h) >= ec->comp->man->h) &&
+ ((ec->client.w) >= e_comp->man->w) &&
+ ((ec->client.h) >= e_comp->man->h) &&
(!ec->argb) && (!ec->shaped)
);
}
-extern EAPI E_Comp *e_comp;
-
#endif
#endif
EINA_SAFETY_ON_NULL_RETURN_VAL(ec, NULL);
if (ec->frame) return NULL;
_e_comp_smart_init();
- o = evas_object_smart_add(ec->comp->evas, _e_comp_smart);
+ o = evas_object_smart_add(e_comp->evas, _e_comp_smart);
cw = evas_object_smart_data_get(o);
evas_object_data_set(o, "E_Client", ec);
cw->ec = ec;
if (set)
{
/* native requires gl enabled, texture from pixmap enabled, and a non-shaped client */
- set = (cw->ec->comp->gl && e_comp_config_get()->texture_from_pixmap && (!cw->ec->shaped));
+ set = (e_comp->gl && e_comp_config_get()->texture_from_pixmap && (!cw->ec->shaped));
if (set)
set = e_pixmap_native_surface_init(cw->ec->pixmap, &ns);
}
if (!ec->comp_data->surface) return;
- if (!eina_list_count(ec->comp->wl_comp_data->ptr.resources)) return;
+ if (!eina_list_count(e_comp->wl_comp_data->ptr.resources)) return;
wc = wl_resource_get_client(ec->comp_data->surface);
- serial = wl_display_next_serial(ec->comp->wl_comp_data->wl.disp);
- EINA_LIST_FOREACH(ec->comp->wl_comp_data->ptr.resources, l, res)
+ serial = wl_display_next_serial(e_comp->wl_comp_data->wl.disp);
+ EINA_LIST_FOREACH(e_comp->wl_comp_data->ptr.resources, l, res)
{
if (!e_comp_wl_input_pointer_check(res)) continue;
if (wl_resource_get_client(res) != wc) continue;
if (!ec->comp_data->surface) return;
- if (!eina_list_count(ec->comp->wl_comp_data->ptr.resources)) return;
+ if (!eina_list_count(e_comp->wl_comp_data->ptr.resources)) return;
wc = wl_resource_get_client(ec->comp_data->surface);
- serial = wl_display_next_serial(ec->comp->wl_comp_data->wl.disp);
- EINA_LIST_FOREACH(ec->comp->wl_comp_data->ptr.resources, l, res)
+ serial = wl_display_next_serial(e_comp->wl_comp_data->wl.disp);
+ EINA_LIST_FOREACH(e_comp->wl_comp_data->ptr.resources, l, res)
{
if (!e_comp_wl_input_pointer_check(res)) continue;
if (wl_resource_get_client(res) != wc) continue;
if (e_object_is_del(E_OBJECT(ec))) return;
if (e_client_util_ignored_get(ec)) return;
- ec->comp->wl_comp_data->ptr.x =
+ e_comp->wl_comp_data->ptr.x =
wl_fixed_from_int(ev->cur.canvas.x - ec->client.x);
- ec->comp->wl_comp_data->ptr.y =
+ e_comp->wl_comp_data->ptr.y =
wl_fixed_from_int(ev->cur.canvas.y - ec->client.y);
if (!ec->comp_data->surface) return;
wc = wl_resource_get_client(ec->comp_data->surface);
- EINA_LIST_FOREACH(ec->comp->wl_comp_data->ptr.resources, l, res)
+ EINA_LIST_FOREACH(e_comp->wl_comp_data->ptr.resources, l, res)
{
if (!e_comp_wl_input_pointer_check(res)) continue;
if (wl_resource_get_client(res) != wc) continue;
wl_pointer_send_motion(res, ev->timestamp,
- ec->comp->wl_comp_data->ptr.x,
- ec->comp->wl_comp_data->ptr.y);
+ e_comp->wl_comp_data->ptr.x,
+ e_comp->wl_comp_data->ptr.y);
}
}
break;
}
- ec->comp->wl_comp_data->ptr.button = btn;
+ e_comp->wl_comp_data->ptr.button = btn;
if (!ec->comp_data->surface) return EINA_FALSE;
- if (!eina_list_count(ec->comp->wl_comp_data->ptr.resources))
+ if (!eina_list_count(e_comp->wl_comp_data->ptr.resources))
return EINA_TRUE;
wc = wl_resource_get_client(ec->comp_data->surface);
- serial = wl_display_next_serial(ec->comp->wl_comp_data->wl.disp);
+ serial = wl_display_next_serial(e_comp->wl_comp_data->wl.disp);
- EINA_LIST_FOREACH(ec->comp->wl_comp_data->ptr.resources, l, res)
+ EINA_LIST_FOREACH(e_comp->wl_comp_data->ptr.resources, l, res)
{
if (wl_resource_get_client(res) != wc) continue;
if (!e_comp_wl_input_pointer_check(res)) continue;
if (!ec->comp_data->surface) return;
wc = wl_resource_get_client(ec->comp_data->surface);
- EINA_LIST_FOREACH(ec->comp->wl_comp_data->ptr.resources, l, res)
+ EINA_LIST_FOREACH(e_comp->wl_comp_data->ptr.resources, l, res)
{
if (!e_comp_wl_input_pointer_check(res)) continue;
if (wl_resource_get_client(res) != wc) continue;
ec->comp_data->focus_update = 1;
if (!ec->comp_data->surface) return;
- if (!eina_list_count(ec->comp->wl_comp_data->kbd.resources)) return;
+ if (!eina_list_count(e_comp->wl_comp_data->kbd.resources)) return;
/* send keyboard_enter to all keyboard resources */
wc = wl_resource_get_client(ec->comp_data->surface);
if (!(ec = data)) return;
- cdata = ec->comp->wl_comp_data;
+ cdata = e_comp->wl_comp_data;
/* update keyboard modifier state */
wl_array_for_each(k, &cdata->kbd.keys)
y -= ay;
}
ec->comp_data->shell.configure_send(ec->comp_data->shell.surface,
- ec->comp->wl_comp_data->resize.edges,
+ e_comp->wl_comp_data->resize.edges,
x, y);
}
else
ec->comp_data->shell.configure_send(ec->comp_data->shell.surface,
- ec->comp->wl_comp_data->resize.edges,
+ e_comp->wl_comp_data->resize.edges,
ec->client.w, ec->client.h);
}
e_object_del(E_OBJECT(ec));
- _e_comp_wl_focus_check(ec->comp);
+ _e_comp_wl_focus_check(e_comp);
/* TODO: Delete request send ??
* NB: No such animal wrt wayland */
if (ec->visible) evas_object_hide(ec->frame);
if (!ec->internal) e_object_del(E_OBJECT(ec));
- _e_comp_wl_focus_check(ec->comp);
+ _e_comp_wl_focus_check(e_comp);
}
static void
if (!ec->comp_data->mapped) goto unmapped;
/* put state damages into surface */
- if ((!ec->comp->nocomp) && (ec->frame))
+ if ((!e_comp->nocomp) && (ec->frame))
{
EINA_LIST_FREE(state->damages, dmg)
{
E_FREE(ec->comp_data);
- _e_comp_wl_focus_check(ec->comp);
+ _e_comp_wl_focus_check(e_comp);
}
static void
if (ec->need_shape_export)
{
// ec->shape_changed = EINA_TRUE;
- e_comp_shape_queue(ec->comp);
+ e_comp_shape_queue(e_comp);
ec->need_shape_export = EINA_FALSE;
}
}
else if (!ec->icccm.take_focus)
e_grabinput_focus(e_client_util_win_get(ec), E_FOCUS_METHOD_PASSIVE);
- if (ec->comp->wl_comp_data->kbd.focus != ec->comp_data->surface)
+ if (e_comp->wl_comp_data->kbd.focus != ec->comp_data->surface)
{
- ec->comp->wl_comp_data->kbd.focus = ec->comp_data->surface;
- e_comp_wl_data_device_keyboard_focus_set(ec->comp->wl_comp_data);
+ e_comp->wl_comp_data->kbd.focus = ec->comp_data->surface;
+ e_comp_wl_data_device_keyboard_focus_set(e_comp->wl_comp_data);
}
}
0, 0, 0);
}
- _e_comp_wl_focus_check(ec->comp);
+ _e_comp_wl_focus_check(e_comp);
- if (ec->comp->wl_comp_data->kbd.focus == ec->comp_data->surface)
- ec->comp->wl_comp_data->kbd.focus = NULL;
+ if (e_comp->wl_comp_data->kbd.focus == ec->comp_data->surface)
+ e_comp->wl_comp_data->kbd.focus = NULL;
}
static void
switch (ec->resize_mode)
{
case E_POINTER_RESIZE_T: // 1
- ec->comp->wl_comp_data->resize.edges = 1;
+ e_comp->wl_comp_data->resize.edges = 1;
break;
case E_POINTER_RESIZE_B: // 2
- ec->comp->wl_comp_data->resize.edges = 2;
+ e_comp->wl_comp_data->resize.edges = 2;
break;
case E_POINTER_RESIZE_L: // 4
- ec->comp->wl_comp_data->resize.edges = 4;
+ e_comp->wl_comp_data->resize.edges = 4;
break;
case E_POINTER_RESIZE_R: // 8
- ec->comp->wl_comp_data->resize.edges = 8;
+ e_comp->wl_comp_data->resize.edges = 8;
break;
case E_POINTER_RESIZE_TL: // 5
- ec->comp->wl_comp_data->resize.edges = 5;
+ e_comp->wl_comp_data->resize.edges = 5;
break;
case E_POINTER_RESIZE_TR: // 9
- ec->comp->wl_comp_data->resize.edges = 9;
+ e_comp->wl_comp_data->resize.edges = 9;
break;
case E_POINTER_RESIZE_BL: // 6
- ec->comp->wl_comp_data->resize.edges = 6;
+ e_comp->wl_comp_data->resize.edges = 6;
break;
case E_POINTER_RESIZE_BR: // 10
- ec->comp->wl_comp_data->resize.edges = 10;
+ e_comp->wl_comp_data->resize.edges = 10;
break;
default:
- ec->comp->wl_comp_data->resize.edges = 0;
+ e_comp->wl_comp_data->resize.edges = 0;
break;
}
}
if (e_object_is_del(E_OBJECT(ec))) return;
if (e_pixmap_type_get(ec->pixmap) != E_PIXMAP_TYPE_WL) return;
- ec->comp->wl_comp_data->resize.edges = 0;
- ec->comp->wl_comp_data->resize.resource = NULL;
+ e_comp->wl_comp_data->resize.edges = 0;
+ e_comp->wl_comp_data->resize.resource = NULL;
if (ec->pending_resize)
{
/* just layer stack */
if (!win)
{
- win = ec->comp->layers[e_comp_canvas_layer_map(ec->layer)].win;
+ win = e_comp->layers[e_comp_canvas_layer_map(ec->layer)].win;
mode = ECORE_X_WINDOW_STACK_BELOW;
}
ecore_x_window_configure(_e_comp_x_client_window_get(ec),
ECORE_X_WINDOW_CONFIGURE_MASK_STACK_MODE,
0, 0, 0, 0, 0, win, mode);
_e_comp_x_post_client_idler_add(ec);
- ec->comp->x_comp_data->restack = 1;
+ e_comp->x_comp_data->restack = 1;
EINA_LIST_FOREACH(ec->e.state.video_child, l, ec2)
evas_object_stack_below(ec2->frame, ec->frame);
}
}
static void
-_e_comp_x_evas_unfullscreen_zoom_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
+_e_comp_x_evas_unfullscreen_zoom_cb(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
{
- E_Client *ec = data;
-
if ((screen_size.width != -1) && (screen_size.height != -1))
{
- ecore_x_randr_screen_primary_output_size_set(ec->comp->man->root,
+ ecore_x_randr_screen_primary_output_size_set(e_comp->man->root,
screen_size_index);
screen_size.width = -1;
screen_size.height = -1;
Ecore_X_Randr_Screen_Size_MM *sizes;
int num_sizes, i, best_size_index = 0;
- ecore_x_randr_screen_primary_output_current_size_get(ec->comp->man->root,
+ ecore_x_randr_screen_primary_output_current_size_get(e_comp->man->root,
&screen_size.width,
&screen_size.height,
NULL, NULL, NULL);
- sizes = ecore_x_randr_screen_primary_output_sizes_get(ec->comp->man->root,
+ sizes = ecore_x_randr_screen_primary_output_sizes_get(e_comp->man->root,
&num_sizes);
if (sizes)
{
((best_size.width != screen_size.width) ||
(best_size.height != screen_size.height)))
{
- if (ecore_x_randr_screen_primary_output_size_set(ec->comp->man->root,
+ if (ecore_x_randr_screen_primary_output_size_set(e_comp->man->root,
best_size_index))
screen_size_index = best_size_index;
evas_object_geometry_set(ec->frame, 0, 0, best_size.width, best_size.height);
_e_comp_x_post_client_idler_add(ec);
ec->post_move = 1;
ec->post_resize = 1;
- ec->comp->x_comp_data->restack = 1;
+ e_comp->x_comp_data->restack = 1;
}
}
}
}
}
if (hid)
- _e_comp_x_focus_check(ec->comp);
+ _e_comp_x_focus_check(e_comp);
return ECORE_CALLBACK_PASS_ON;
}
ec->saved.x = x;
ec->saved.y = y;
- zone = e_comp_zone_xy_get(ec->comp, x, y);
+ zone = e_comp_zone_xy_get(e_comp, x, y);
if (zone && (zone->x || zone->y))
{
ec->saved.x -= zone->x;
else
{
/* client is completely outside the screen, policy does not allow */
- if (((!E_INTERSECTS(x, y, ec->w, ec->h, ec->comp->man->x, ec->comp->man->y, ec->comp->man->w - 5, ec->comp->man->h - 5)) &&
+ if (((!E_INTERSECTS(x, y, ec->w, ec->h, e_comp->man->x, e_comp->man->y, e_comp->man->w - 5, e_comp->man->h - 5)) &&
(e_config->screen_limits != E_CLIENT_OFFSCREEN_LIMIT_ALLOW_FULL)) ||
/* client is partly outside the zone, policy does not allow */
- (((!E_INSIDE(x, y, ec->comp->man->x, ec->comp->man->y, ec->comp->man->w - 5, ec->comp->man->h - 5)) &&
- (!E_INSIDE(x + ec->w, y, ec->comp->man->x, ec->comp->man->y, ec->comp->man->w - 5, ec->comp->man->h - 5)) &&
- (!E_INSIDE(x, y + ec->h, ec->comp->man->x, ec->comp->man->y, ec->comp->man->w - 5, ec->comp->man->h - 5)) &&
- (!E_INSIDE(x + ec->w, y + ec->h, ec->comp->man->x, ec->comp->man->y, ec->comp->man->w - 5, ec->comp->man->h - 5))) &&
+ (((!E_INSIDE(x, y, e_comp->man->x, e_comp->man->y, e_comp->man->w - 5, e_comp->man->h - 5)) &&
+ (!E_INSIDE(x + ec->w, y, e_comp->man->x, e_comp->man->y, e_comp->man->w - 5, e_comp->man->h - 5)) &&
+ (!E_INSIDE(x, y + ec->h, e_comp->man->x, e_comp->man->y, e_comp->man->w - 5, e_comp->man->h - 5)) &&
+ (!E_INSIDE(x + ec->w, y + ec->h, e_comp->man->x, e_comp->man->y, e_comp->man->w - 5, e_comp->man->h - 5))) &&
(e_config->screen_limits == E_CLIENT_OFFSCREEN_LIMIT_ALLOW_NONE))
)
e_comp_object_util_center(ec->frame);
{
if (e_util_strcmp(p, ec->desk->window_profile))
{
- E_Desk *desk = e_comp_desk_window_profile_get(ec->comp, p);
+ E_Desk *desk = e_comp_desk_window_profile_get(e_comp, p);
if (desk) e_client_desk_set(ec, desk);
}
}
break;
default:
- if (e_client_action_get() || ec->comp->nocomp)
+ if (e_client_action_get() || e_comp->nocomp)
{
/* be helpful and ignore activates during window actions, but still set urgent */
e_client_urgent_set(ec, 1);
x = ev->data.l[1];
y = ev->data.l[2];
e_int_client_menu_show(ec,
- e_comp_canvas_x_root_adjust(ec->comp, x),
- e_comp_canvas_y_root_adjust(ec->comp, y),
+ e_comp_canvas_x_root_adjust(e_comp, x),
+ e_comp_canvas_y_root_adjust(e_comp, y),
0, 0);
}
else if (ev->message_type == ATM_NETWM_PERFORM_BUTTON_ACTION)
ec = _e_comp_x_client_find_by_window(ev->win);
if (!ec) return ECORE_CALLBACK_RENEW;
if (ec->comp_data->deleted) return ECORE_CALLBACK_RENEW;
- e_client_mouse_in(ec, e_comp_canvas_x_root_adjust(ec->comp, ev->root.x), e_comp_canvas_x_root_adjust(ec->comp, ev->root.y));
+ e_client_mouse_in(ec, e_comp_canvas_x_root_adjust(e_comp, ev->root.x), e_comp_canvas_x_root_adjust(e_comp, ev->root.y));
return ECORE_CALLBACK_RENEW;
}
ec = _e_comp_x_client_find_by_window(ev->win);
if (!ec) return ECORE_CALLBACK_RENEW;
if (ec->comp_data->deleted) return ECORE_CALLBACK_RENEW;
- e_client_mouse_out(ec, e_comp_canvas_x_root_adjust(ec->comp, ev->root.x), e_comp_canvas_x_root_adjust(ec->comp, ev->root.y));
+ e_client_mouse_out(ec, e_comp_canvas_x_root_adjust(e_comp, ev->root.x), e_comp_canvas_x_root_adjust(e_comp, ev->root.y));
return ECORE_CALLBACK_RENEW;
}
evas_object_resize(ec->internal_elm_win, ec->client.w, ec->client.h);
}
- ecore_x_pointer_xy_get(ec->comp->man->root,
+ ecore_x_pointer_xy_get(e_comp->man->root,
&ec->mouse.current.mx,
&ec->mouse.current.my);
}
//WRN("DAMAGE %p: %dx%d", ec, ev->area.width, ev->area.height);
- if (ec->comp->nocomp)
+ if (e_comp->nocomp)
e_pixmap_dirty(ec->pixmap);
/* discard unwanted xy position of first damage
* to avoid wrong composition for override redirect window */
_e_comp_x_hook_client_eval_end(void *d EINA_UNUSED, E_Client *ec)
{
E_COMP_X_PIXMAP_CHECK;
- if (ec->comp->x_comp_data->restack && (!ec->comp->new_clients))
+ if (e_comp->x_comp_data->restack && (!e_comp->new_clients))
{
e_hints_client_stacking_set();
- ec->comp->x_comp_data->restack = 0;
+ e_comp->x_comp_data->restack = 0;
}
}
ec->shape_rects = (Eina_Rectangle*)rects;
ec->shape_rects_num = num;
ec->shape_changed = 1;
- e_comp_shape_queue(ec->comp);
+ e_comp_shape_queue(e_comp);
}
else
free(rects);
h = MAX(ec->client.h, 1);
/* match ec parent argbness */
if (ec->argb)
- pwin = ecore_x_window_manager_argb_new(ec->comp->man->root, ec->client.x, ec->client.y, w, h);
+ pwin = ecore_x_window_manager_argb_new(e_comp->man->root, ec->client.x, ec->client.y, w, h);
else
{
- pwin = ecore_x_window_override_new(ec->comp->man->root, ec->client.x, ec->client.y, w, h);
+ pwin = ecore_x_window_override_new(e_comp->man->root, ec->client.x, ec->client.y, w, h);
ecore_x_window_shape_events_select(pwin, !ec->internal); //let's just agree never to do this with our own windows...
}
ec->y = zy + zh - ec->h;
// <--
- if (e_comp_zone_xy_get(ec->comp, ec->x, ec->y))
+ if (e_comp_zone_xy_get(e_comp, ec->x, ec->y))
{
if (!E_INSIDE(ec->x, ec->y, ec->zone->x, ec->zone->y, ec->zone->w, ec->zone->h))
{
ec->y = E_CLAMP(ec->y, ec->zone->y, ec->zone->y + ec->zone->h);
}
/* some application failing to correctly center a window */
- if (eina_list_count(ec->comp->zones) > 1)
+ if (eina_list_count(e_comp->zones) > 1)
{
- if (abs((ec->comp->man->w / 2) - ec->x - (ec->w / 2)) < 3)
+ if (abs((e_comp->man->w / 2) - ec->x - (ec->w / 2)) < 3)
ec->x = ((ec->zone->x + ec->zone->w) / 2) - (ec->w / 2);
- if (abs((ec->comp->man->h / 2) - ec->y - (ec->h / 2)) < 3)
+ if (abs((e_comp->man->h / 2) - ec->y - (ec->h / 2)) < 3)
ec->y = ((ec->zone->y + ec->zone->h) / 2) - (ec->h / 2);
}
ec->changes.pos = 1;
if (changed || (pshaped != ec->shaped_input))
{
ec->need_shape_merge = 1;
- e_comp_shape_queue(ec->comp);
+ e_comp_shape_queue(e_comp);
}
}
if (ec->changes.prop || ec->mwm.fetch.hints)
E_Zone *zone;
E_Desk *desk;
- zone = e_comp_zone_number_get(ec->comp, inst->screen);
+ zone = e_comp_zone_number_get(e_comp, inst->screen);
if (zone) e_client_zone_set(ec, zone);
desk = e_desk_at_xy_get(ec->zone, inst->desk_x,
inst->desk_y);
ecl = ec->leader;
if (!ecl)
{
- E_Client *child = e_client_bottom_get(ec->comp);
+ E_Client *child = e_client_bottom_get(e_comp);
do
{
}
else
{
- desk = e_comp_desk_window_profile_get(ec->comp, p);
+ desk = e_comp_desk_window_profile_get(e_comp, p);
if (desk)
{
e_client_desk_set(ec, desk);
for (i = 0; i < ec->e.state.profile.num; i++)
{
p2 = ec->e.state.profile.available_list[i];
- desk = e_comp_desk_window_profile_get(ec->comp, p2);
+ desk = e_comp_desk_window_profile_get(e_comp, p2);
if (desk)
{
e_client_desk_set(ec, desk);
_e_comp_x_hook_client_focus_unset(void *d EINA_UNUSED, E_Client *ec)
{
E_COMP_X_PIXMAP_CHECK;
- _e_comp_x_focus_check(ec->comp);
+ _e_comp_x_focus_check(e_comp);
}
static void
focus_time = ecore_x_current_time_get();
if ((e_pixmap_type_get(ec->pixmap) != E_PIXMAP_TYPE_X))
{
- e_grabinput_focus(ec->comp->ee_win, E_FOCUS_METHOD_PASSIVE);
+ e_grabinput_focus(e_comp->ee_win, E_FOCUS_METHOD_PASSIVE);
return;
}
ecore_x_composite_redirect_window(_e_comp_x_client_window_get(ec), ECORE_X_COMPOSITE_UPDATE_MANUAL);
ec->comp_data->unredirected_single = 0;
}
- else if (ec->comp->nocomp)
+ else if (e_comp->nocomp)
{
/* first window */
- e_comp_x_nocomp_end(ec->comp);
- ecore_x_window_reparent(_e_comp_x_client_window_get(ec), ec->comp->man->root, ec->client.x, ec->client.y);
+ e_comp_x_nocomp_end(e_comp);
+ ecore_x_window_reparent(_e_comp_x_client_window_get(ec), e_comp->man->root, ec->client.x, ec->client.y);
_e_comp_x_client_stack(ec);
}
if (!ec->comp_data->damage)
if (ec->unredirected_single && (!ec->comp_data->unredirected_single))
{
ecore_x_composite_unredirect_window(_e_comp_x_client_window_get(ec), ECORE_X_COMPOSITE_UPDATE_MANUAL);
- ecore_x_window_reparent(_e_comp_x_client_window_get(ec), ec->comp->win, ec->client.x, ec->client.y);
+ ecore_x_window_reparent(_e_comp_x_client_window_get(ec), e_comp->win, ec->client.x, ec->client.y);
ecore_x_window_raise(_e_comp_x_client_window_get(ec));
ec->comp_data->unredirected_single = 1;
}
- if (!ec->comp->nocomp) return; //wait for it...
- ecore_x_composite_unredirect_subwindows(ec->comp->man->root, ECORE_X_COMPOSITE_UPDATE_MANUAL);
- ecore_x_window_hide(ec->comp->win);
+ if (!e_comp->nocomp) return; //wait for it...
+ ecore_x_composite_unredirect_subwindows(e_comp->man->root, ECORE_X_COMPOSITE_UPDATE_MANUAL);
+ ecore_x_window_hide(e_comp->win);
}
static void
{
if (stopping)
{
- ecore_x_window_reparent(win, ec->comp->man->root,
+ ecore_x_window_reparent(win, e_comp->man->root,
ec->client.x, ec->client.y);
ecore_x_window_configure(win,
ECORE_X_WINDOW_CONFIGURE_MASK_SIBLING |
else
/* put the window back where we found it to prevent annoying dancing windows */
- ecore_x_window_reparent(win, ec->comp->man->root,
+ ecore_x_window_reparent(win, e_comp->man->root,
ec->comp_data->initial_attributes.x,
ec->comp_data->initial_attributes.y);
if (!ec->internal)
if (post_clients)
post_clients = eina_list_remove(post_clients, ec);
- _e_comp_x_focus_check(ec->comp);
+ _e_comp_x_focus_check(e_comp);
}
static void
ec->lock_client_stacking = 1;
ec->internal = 1;
ec->visible = 1;
- ec->comp->layers[i].obj = ec->frame;
+ e_comp->layers[i].obj = ec->frame;
evas_object_layer_set(ec->frame, e_comp_canvas_layer_map_to(i));
evas_object_pass_events_set(ec->frame, 1);
evas_object_show(ec->frame);
mi = e_menu_item_new(m);
e_menu_item_separator_set(mi, 1);
- if ((!ec->sticky) && ((eina_list_count(ec->comp->zones) > 1) || (ec->zone->desk_x_count > 1) || (ec->zone->desk_y_count > 1)))
+ if ((!ec->sticky) && ((eina_list_count(e_comp->zones) > 1) || (ec->zone->desk_x_count > 1) || (ec->zone->desk_y_count > 1)))
{
mi = e_menu_item_new(m);
e_menu_item_label_set(mi, _("Move to"));
subm = e_menu_new();
e_menu_item_submenu_set(mi, subm);
e_object_unref(E_OBJECT(subm));
- e_object_data_set(E_OBJECT(subm), ec->comp);
+ e_object_data_set(E_OBJECT(subm), e_comp);
if (e_pixmap_type_get(ec->pixmap) == E_PIXMAP_TYPE_X)
{
mi = e_menu_item_new(subm);
n.urgency = E_NOTIFICATION_NOTIFY_URGENCY_NORMAL;
e_notification_client_send(&n, NULL, NULL);
- o = evas_object_rectangle_add(ec->comp->evas);
- evas_object_resize(o, ec->comp->man->w, ec->comp->man->h);
+ o = evas_object_rectangle_add(e_comp->evas);
+ evas_object_resize(o, e_comp->man->w, e_comp->man->h);
evas_object_color_set(o, 0, 0, 0, 0);
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(ec->comp);
+ e_comp_shape_queue(e_comp);
}
static Evas_Object *
e_menu_item_submenu_set(mi, subm);
e_object_unref(E_OBJECT(subm));
- EINA_LIST_FOREACH(ec->comp->zones, l, zone)
+ EINA_LIST_FOREACH(e_comp->zones, l, zone)
{
if (zones > 1)
{
cy2 = ec->zone->y + ec->zone->h;
if (y2) cy2 = *y2;
- E_CLIENT_FOREACH(ec->comp, ec2)
+ E_CLIENT_FOREACH(e_comp, ec2)
{
enum
{
E_Maximize_Rect *r;
E_Client *ec2;
- E_CLIENT_FOREACH(ec->comp, ec2)
+ E_CLIENT_FOREACH(e_comp, ec2)
{
if ((ec2->zone != ec->zone) || (ec == ec2) || (ec2->desk != ec->desk && !ec2->sticky) || (ec2->iconic))
continue;
if (ec->zone)
x = ec->zone->x, y = ec->zone->y;
if ((e_config->focus_policy != E_FOCUS_CLICK) && (!e_config->disable_all_pointer_warps))
- ecore_evas_pointer_warp(ec->comp->ee,
+ ecore_evas_pointer_warp(e_comp->ee,
x + ec->x + (ec->w / 2),
y + ec->y + (ec->h / 2));
}
else
{
#warning X ONLY! SPANK! SPANK! SPANK!!!
- if (ec->comp_data->illume.conformant.conformant)
+ if (e_comp_data->illume.conformant.conformant)
{
if (kbd_on != want_kbd)
{
if (ec)
{
#ifndef HAVE_WAYLAND_ONLY
- if (ec->comp->comp_type == E_PIXMAP_TYPE_X)
+ if (e_comp->comp_type == E_PIXMAP_TYPE_X)
ecore_x_netwm_window_type_set(elm_win_window_id_get(win->ewin),
ECORE_X_WINDOW_TYPE_UTILITY);
#endif
ec = e_win_client_get(ewin);
elm_win_borderless_set(ewin, 0);
#ifndef HAVE_WAYLAND_ONLY
- if (ec->comp->comp_type == E_PIXMAP_TYPE_X)
+ if (e_comp->comp_type == E_PIXMAP_TYPE_X)
ecore_x_netwm_window_type_set(elm_win_window_id_get(ewin),
ECORE_X_WINDOW_TYPE_DIALOG);
#endif
if (!ec) return;
- E_CLIENT_REVERSE_FOREACH(ec->comp, b)
+ E_CLIENT_REVERSE_FOREACH(e_comp, b)
{
if (e_client_util_ignored_get(b)) continue;
if (b->layer <= ec->layer) break;
if (!ec) return;
- E_CLIENT_FOREACH(ec->comp, b)
+ E_CLIENT_FOREACH(e_comp, b)
{
if (e_client_util_ignored_get(b)) continue;
/* break if it's the same client */
}
}
- E_CLIENT_FOREACH(ec->comp, b)
+ E_CLIENT_FOREACH(e_comp, b)
{
if (e_client_util_ignored_get(b)) continue;
/* break if it's the same border */
if (!ec) return;
/* Find the windows below this one */
- E_CLIENT_FOREACH(ec->comp, b)
+ E_CLIENT_FOREACH(e_comp, b)
{
if (e_client_util_ignored_get(b)) continue;
if (b->layer < E_LAYER_CLIENT_BELOW) continue;
}
/* Find the windows below this one */
- E_CLIENT_FOREACH(ec->comp, b)
+ E_CLIENT_FOREACH(e_comp, b)
{
if (e_client_util_ignored_get(b)) continue;
if (b->layer < E_LAYER_CLIENT_BELOW) continue;
evas_object_geometry_get(pw->o_mirror, &x, &y, &w, &h);
evas_object_hide(pw->o_mirror);
- drag = e_drag_new(pw->client->comp,
+ drag = e_drag_new(e_comp,
x, y, drag_types, 2, pw->desk->pager, -1,
_pager_window_cb_drag_convert,
_pager_window_cb_drag_finished);
if (!ww) return EINA_FALSE;
ww->client = ec;
_wins = eina_list_append(_wins, ww);
- o = edje_object_add(ec->comp->evas);
+ o = edje_object_add(e_comp->evas);
E_FILL(o);
e_comp_object_util_del_list_append(_winlist, o);
ww->bg_object = o;
evas_object_show(o);
if (edje_object_part_exists(ww->bg_object, "e.swallow.icon"))
{
- o = e_client_icon_add(ec, ec->comp->evas);
+ o = e_client_icon_add(ec, e_comp->evas);
ww->icon_object = o;
e_comp_object_util_del_list_append(_winlist, o);
edje_object_part_swallow(ww->bg_object, "e.swallow.icon", o);
{
if (e_object_is_del(E_OBJECT(ec))) return;
- if (ec->comp_data)
+ if (e_comp_data)
{
- if (ec->comp_data->mapped)
+ if (e_comp_data->mapped)
{
- if ((ec->comp_data->shell.surface) &&
- (ec->comp_data->shell.unmap))
- ec->comp_data->shell.unmap(ec->comp_data->shell.surface);
+ if ((e_comp_data->shell.surface) &&
+ (e_comp_data->shell.unmap))
+ e_comp_data->shell.unmap(e_comp_data->shell.surface);
}
if (ec->parent)
{
ec->parent->transients =
eina_list_remove(ec->parent->transients, ec);
}
- /* wl_resource_destroy(ec->comp_data->shell.surface); */
- ec->comp_data->shell.surface = NULL;
+ /* wl_resource_destroy(e_comp_data->shell.surface); */
+ e_comp_data->shell.surface = NULL;
}
}
}
if (!ec->internal)
ec->border.changed = ec->changes.border = !ec->borderless;
ec->netwm.type = E_WINDOW_TYPE_NORMAL;
- ec->comp_data->set_win_type = EINA_TRUE;
+ e_comp_data->set_win_type = EINA_TRUE;
if ((!ec->lock_user_maximize) && (ec->maximized))
e_client_unmaximize(ec, E_MAXIMIZE_BOTH);
if ((!ec->lock_user_fullscreen) && (ec->fullscreen))
return;
}
- if (ec->comp_data)
+ if (e_comp_data)
{
- ec->comp_data->popup.x = x;
- ec->comp_data->popup.y = y;
+ e_comp_data->popup.x = x;
+ e_comp_data->popup.y = y;
}
if (!ec->internal)
ec->border.changed = ec->changes.border = !ec->borderless;
ec->changes.icon = !!ec->icccm.class;
ec->netwm.type = E_WINDOW_TYPE_POPUP_MENU;
- ec->comp_data->set_win_type = EINA_TRUE;
+ e_comp_data->set_win_type = EINA_TRUE;
ec->layer = E_LAYER_CLIENT_POPUP;
/* set this client as a transient for parent */
(ec->netwm.type == E_WINDOW_TYPE_POPUP_MENU) ||
(ec->netwm.type == E_WINDOW_TYPE_DROPDOWN_MENU))
{
- x = E_CLAMP(ec->parent->client.x + ec->comp_data->popup.x,
+ x = E_CLAMP(ec->parent->client.x + e_comp_data->popup.x,
ec->parent->client.x,
ec->parent->client.x + ec->parent->client.w - ec->client.w);
- y = E_CLAMP(ec->parent->client.y + ec->comp_data->popup.y,
+ y = E_CLAMP(ec->parent->client.y + e_comp_data->popup.y,
ec->parent->client.y,
ec->parent->client.y + ec->parent->client.h - ec->client.h);
}
return;
}
- serial = wl_display_next_serial(ec->comp->wl_comp_data->wl.disp);
- wl_shell_surface_send_ping(ec->comp_data->shell.surface, serial);
+ serial = wl_display_next_serial(e_comp->wl_comp_data->wl.disp);
+ wl_shell_surface_send_ping(e_comp_data->shell.surface, serial);
}
static void
}
/* map this surface if needed */
- if ((!ec->comp_data->mapped) && (e_pixmap_usable_get(ec->pixmap)))
+ if ((!e_comp_data->mapped) && (e_pixmap_usable_get(ec->pixmap)))
{
ec->visible = EINA_TRUE;
evas_object_geometry_set(ec->frame, ec->x, ec->y, ec->w, ec->h);
evas_object_show(ec->frame);
- ec->comp_data->mapped = EINA_TRUE;
+ e_comp_data->mapped = EINA_TRUE;
}
}
return;
}
- if (ec->comp_data->mapped)
+ if (e_comp_data->mapped)
{
ec->visible = EINA_FALSE;
evas_object_hide(ec->frame);
- ec->comp_data->mapped = EINA_FALSE;
+ e_comp_data->mapped = EINA_FALSE;
}
}
ec->netwm.ping = EINA_TRUE;
/* get the client data */
- if (!(cdata = ec->comp_data))
+ if (!(cdata = e_comp_data))
{
wl_resource_post_error(surface_resource,
WL_DISPLAY_ERROR_INVALID_OBJECT,
if (ec->netwm.type != E_WINDOW_TYPE_POPUP_MENU)
{
- serial = wl_display_next_serial(ec->comp->wl_comp_data->wl.disp);
+ serial = wl_display_next_serial(e_comp->wl_comp_data->wl.disp);
xdg_surface_send_configure(resource, width, height, &states, serial);
}
wl_array_release(&states);
"No Client For Shell Surface");
return;
}
- EINA_RECTANGLE_SET(&ec->comp_data->shell.window, x, y, w, h);
+ EINA_RECTANGLE_SET(&e_comp_data->shell.window, x, y, w, h);
//DBG("XDG_SHELL: Window Geom Set: %d \t%d %d, %d %d", wl_resource_get_id(resource), x, y, w, h);
}
(ec->netwm.type == E_WINDOW_TYPE_POPUP_MENU) ||
(ec->netwm.type == E_WINDOW_TYPE_DROPDOWN_MENU))
{
- x = ec->parent->client.x + ec->comp_data->popup.x;
- y = ec->parent->client.y + ec->comp_data->popup.y;
+ x = ec->parent->client.x + e_comp_data->popup.x;
+ y = ec->parent->client.y + e_comp_data->popup.y;
}
}
return;
}
- if (ec->comp->wl_comp_data->shell_interface.xdg_shell)
+ if (e_comp->wl_comp_data->shell_interface.xdg_shell)
{
- serial = wl_display_next_serial(ec->comp->wl_comp_data->wl.disp);
- xdg_shell_send_ping(ec->comp->wl_comp_data->shell_interface.xdg_shell, serial);
+ serial = wl_display_next_serial(e_comp->wl_comp_data->wl.disp);
+ xdg_shell_send_ping(e_comp->wl_comp_data->shell_interface.xdg_shell, serial);
}
}
return;
}
- if ((!ec->comp_data->mapped) && (e_pixmap_usable_get(ec->pixmap)))
+ if ((!e_comp_data->mapped) && (e_pixmap_usable_get(ec->pixmap)))
{
/* map this surface if needed */
ec->visible = EINA_TRUE;
evas_object_show(ec->frame);
- ec->comp_data->mapped = EINA_TRUE;
+ e_comp_data->mapped = EINA_TRUE;
/* FIXME: sometimes popup surfaces Do Not raise above their
* respective parents... */
return;
}
- if (ec->comp_data->mapped)
+ if (e_comp_data->mapped)
{
ec->visible = EINA_FALSE;
evas_object_hide(ec->frame);
- ec->comp_data->mapped = EINA_FALSE;
+ e_comp_data->mapped = EINA_FALSE;
}
}
ec->netwm.ping = EINA_TRUE;
/* get the client data */
- if (!(cdata = ec->comp_data))
+ if (!(cdata = e_comp_data))
{
wl_resource_post_error(surface_resource,
WL_DISPLAY_ERROR_INVALID_OBJECT,
if ((!ec->internal) || (!ec->borderless))
ec->border.changed = ec->changes.border = !ec->borderless;
ec->netwm.type = E_WINDOW_TYPE_NORMAL;
- ec->comp_data->set_win_type = EINA_TRUE;
+ e_comp_data->set_win_type = EINA_TRUE;
}
static void
}
/* get the client data */
- if (!(cdata = ec->comp_data))
+ if (!(cdata = e_comp_data))
{
wl_resource_post_error(surface_resource,
WL_DISPLAY_ERROR_INVALID_OBJECT,
ec->border.changed = ec->changes.border = !ec->borderless;
ec->changes.icon = !!ec->icccm.class;
ec->netwm.type = E_WINDOW_TYPE_POPUP_MENU;
- ec->comp_data->set_win_type = EINA_TRUE;
+ e_comp_data->set_win_type = EINA_TRUE;
evas_object_layer_set(ec->frame, E_LAYER_CLIENT_POPUP);
e_client_focus_stack_set(eina_list_remove(e_client_focus_stack_get(), ec));