#define E_COM_WL_PREPARE_GAP_LOG_TIME 2000
EINTERN int E_EVENT_WAYLAND_GLOBAL_ADD = -1;
-#include "session-recovery-server-protocol.h"
#ifndef EGL_HEIGHT
# define EGL_HEIGHT 0x3056
}
static void
-_e_comp_wl_sr_cb_provide_uuid(struct wl_client *client EINA_UNUSED, struct wl_resource *resource EINA_UNUSED, const char *uuid)
-{
- DBG("Provide UUID callback called for UUID: %s", uuid);
-}
-
-static const struct session_recovery_interface _e_session_recovery_interface =
-{
- _e_comp_wl_sr_cb_provide_uuid,
-};
-
-static void
-_e_comp_wl_session_recovery_cb_bind(struct wl_client *client, void *data EINA_UNUSED, uint32_t version EINA_UNUSED, uint32_t id)
-{
- struct wl_resource *res;
-
- if (!(res = wl_resource_create(client, &session_recovery_interface, 1, id)))
- {
- ERR("Could not create session_recovery interface");
- wl_client_post_no_memory(client);
- return;
- }
-
- /* set implementation on resource */
- wl_resource_set_implementation(res, &_e_session_recovery_interface, e_comp, NULL);
-}
-
-static void
_e_comp_wl_client_cb_new(void *data EINA_UNUSED, E_Client *ec)
{
Ecore_Window win;
goto comp_global_err;
}
- /* try to add session_recovery to wayland globals */
- if (!wl_global_create(wl_cdata->wl.disp, &session_recovery_interface, 1,
- e_comp, _e_comp_wl_session_recovery_cb_bind))
- {
- ERR("Could not add session_recovery to wayland globals: %m");
- goto comp_global_err;
- }
-
/* initialize shm mechanism */
wl_display_init_shm(wl_cdata->wl.disp);
e_comp_wl->outputs = eina_list_append(e_comp_wl->outputs, output);
- output->global =
+ output->global =
wl_global_create(e_comp_wl->wl.disp, &wl_output_interface,
2, output, _e_comp_wl_cb_output_bind);