It is deprecated.
Change-Id: Ia414b70b0366c6736710366ffb4e74297db09a9d
#endif
else if (ec->dialog)
{
- E_Client *trans_ec = NULL;
+ tx = zx + ((zw - ec->w) / 2);
+ ty = zy + ((zh - ec->h) / 2);
+ e_client_pos_set(ec, tx, ty);
- if (ec->icccm.transient_for)
- trans_ec = e_pixmap_find_client(E_PIXMAP_TYPE_X, ec->icccm.transient_for);
- if (trans_ec)
- {
- // if transient for a window and not placed, center on
- // transient parent if found
- tx = trans_ec->x + ((trans_ec->w - ec->w) / 2);
- ty = trans_ec->y + ((trans_ec->h - ec->h) / 2);
- e_client_pos_set(ec, tx, ty);
- }
- else
- {
- tx = zx + ((zw - ec->w) / 2);
- ty = zy + ((zh - ec->h) / 2);
- e_client_pos_set(ec, tx, ty);
- }
ec->changes.pos = 1;
ec->placed = 1;
ec->pre_cb.x = ec->x; ec->pre_cb.y = ec->y;
e_comp->bindings_grab_cb();
}
-EINTERN void
-e_comp_client_redirect_toggle(E_Client *ec)
-{
- EINA_SAFETY_ON_NULL_RETURN(ec);
- if (!conf->enable_advanced_features) return;
- if (e_pixmap_type_get(ec->pixmap) != E_PIXMAP_TYPE_X) return;
- ec->unredirected_single = !ec->unredirected_single;
- e_client_redirected_set(ec, !ec->redirected);
- ec->no_shape_cut = !ec->redirected;
-}
-
EINTERN Eina_Bool
e_comp_util_object_is_above_nocomp(Evas_Object *obj)
{
EINTERN void e_comp_button_bindings_grab_all(void);
EINTERN void e_comp_button_bindings_ungrab_all(void);
-EINTERN void e_comp_client_redirect_toggle(E_Client *ec);
EINTERN Eina_Bool e_comp_util_object_is_above_nocomp(Evas_Object *obj);
EINTERN Eina_Bool e_comp_util_kbd_grabbed(void);
uintptr_t id;
E_Pixmap *cp;
- if (type == E_PIXMAP_TYPE_X) return NULL;
if (!pixmaps[type]) return NULL;
id = va_arg(*l, uintptr_t);
e_pixmap_win_id_del(E_Pixmap *cp)
{
if (!cp) return;
- if (cp->type == E_PIXMAP_TYPE_X) return;
if (!cp->win) return;
eina_hash_del_by_key(pixmaps[cp->type], &cp->win);
va_list l;
uintptr_t id;
- EINA_SAFETY_ON_TRUE_RETURN_VAL(type == E_PIXMAP_TYPE_X, NULL);
+ EINA_SAFETY_ON_TRUE_RETURN_VAL(type >= E_PIXMAP_TYPE_MAX, NULL);
va_start(l, type);
typedef enum
{
- E_PIXMAP_TYPE_X,
E_PIXMAP_TYPE_WL,
E_PIXMAP_TYPE_EXT_OBJECT,
E_PIXMAP_TYPE_NONE,
static inline Eina_Bool
e_pixmap_is_x(const E_Pixmap *cp)
{
- return cp && e_pixmap_type_get(cp) == E_PIXMAP_TYPE_X;
+ return EINA_FALSE;
}
# endif