fix teamwork with 1.9

this id encoding only gets applied for wayland-running clients...not sure if htis is the best way to detect it but it works
This commit is contained in:
Mike Blumenkrantz 2013-12-30 18:32:22 -05:00
parent 734b652cbf
commit 7a2d665610
1 changed files with 4 additions and 2 deletions

View File

@ -561,7 +561,8 @@ _update_link(Evas_Object *obj, Termio *sd,
#if (ELM_VERSION_MAJOR > 1) || (ELM_VERSION_MINOR >= 8)
xwin = elm_win_window_id_get(sd->win);
# if (ELM_VERSION_MAJOR > 1) || (ELM_VERSION_MINOR > 8) // not a typo
xwin = ((uint64_t)xwin << 32) + (uint64_t)getpid();
if (strstr(ecore_evas_engine_name_get(ecore_evas_ecore_evas_get(evas_object_evas_get(sd->win))), "wayland"))
xwin = ((uint64_t)xwin << 32) + (uint64_t)getpid();
# endif
#else
xwin = elm_win_xwindow_get(sd->win);
@ -634,7 +635,8 @@ _remove_links(Termio *sd, Evas_Object *obj)
#if (ELM_VERSION_MAJOR > 1) || (ELM_VERSION_MINOR >= 8)
xwin = elm_win_window_id_get(sd->win);
# if (ELM_VERSION_MAJOR > 1) || (ELM_VERSION_MINOR > 8) // not a typo
xwin = ((uint64_t)xwin << 32) + (uint64_t)getpid();
if (strstr(ecore_evas_engine_name_get(ecore_evas_ecore_evas_get(evas_object_evas_get(sd->win))), "wayland"))
xwin = ((uint64_t)xwin << 32) + (uint64_t)getpid();
# endif
#else
xwin = elm_win_xwindow_get(sd->win);