_e_comp_wl_surface_destroy);
wl_client_get_credentials(client, &pid, NULL, NULL);
- win = ((uint64_t)id << 32) + pid;
+ win = e_comp_wl_id_get(id, pid);
/* check for existing pixmap */
if (!(ep = e_pixmap_find(E_PIXMAP_TYPE_WL, win)))
{
EAPI struct wl_signal e_comp_wl_surface_create_signal_get(E_Comp *comp);
EAPI double e_comp_wl_idle_time_get(void);
+static inline uint64_t
+e_comp_wl_id_get(uint32_t id, pid_t pid)
+{
+ return ((uint64_t)id << 32) + pid;
+}
+
# endif
#endif
type = E_PIXMAP_TYPE_WL;
ctx->pointer = e_comp->pointer;
elm_win_borderless_set(o, 1);
- win = ((uint64_t)win << 32) + getpid();
+ win = e_comp_wl_id_get(win, getpid());
}
else
{