forked from enlightenment/enlightenment
Fix wayland pixmap ids again
Wayland pixmap ids are a different data type for internal and
external windows. cast them both to 64-bits so they're the same
size regardless of arch.
ref d3ba524a62
This commit is contained in:
parent
4f0e3bce84
commit
ab5879b926
|
@ -96,7 +96,11 @@ _e_elm_win_trap_show(void *data, Evas_Object *o)
|
||||||
ctx->pointer = e_pointer_window_new(win, EINA_TRUE);
|
ctx->pointer = e_pointer_window_new(win, EINA_TRUE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (type == E_PIXMAP_TYPE_WL)
|
||||||
|
ec = e_pixmap_find_client(type, (int64_t)win);
|
||||||
|
else
|
||||||
ec = e_pixmap_find_client(type, win);
|
ec = e_pixmap_find_client(type, win);
|
||||||
|
|
||||||
if (ec)
|
if (ec)
|
||||||
ctx->client = ec;
|
ctx->client = ec;
|
||||||
else
|
else
|
||||||
|
@ -113,7 +117,11 @@ _e_elm_win_trap_show(void *data, Evas_Object *o)
|
||||||
title = "E";
|
title = "E";
|
||||||
ecore_evas_title_set(ee, title);
|
ecore_evas_title_set(ee, title);
|
||||||
|
|
||||||
|
if (type == E_PIXMAP_TYPE_WL)
|
||||||
|
cp = e_pixmap_new(type, (int64_t)win);
|
||||||
|
else
|
||||||
cp = e_pixmap_new(type, win);
|
cp = e_pixmap_new(type, win);
|
||||||
|
|
||||||
EINA_SAFETY_ON_NULL_RETURN_VAL(cp, EINA_TRUE);
|
EINA_SAFETY_ON_NULL_RETURN_VAL(cp, EINA_TRUE);
|
||||||
#ifdef HAVE_WAYLAND
|
#ifdef HAVE_WAYLAND
|
||||||
if (wl_win_id >= 0)
|
if (wl_win_id >= 0)
|
||||||
|
|
Loading…
Reference in New Issue