From 3aca95bb22cac0f0ab86eede49a3118fbcc7c93e Mon Sep 17 00:00:00 2001 From: Rafael Antognolli Date: Mon, 28 Oct 2013 14:12:27 -0200 Subject: [PATCH] ecore/wayland: Add info about other bound interfaces. Add output, seat, data_device_manager and subcompositor as possible bound interfaces, on the ECORE_WL_EVENT_INTERFACES_BOUND event info. --- src/lib/ecore_wayland/Ecore_Wayland.h | 4 ++++ src/lib/ecore_wayland/ecore_wl.c | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/src/lib/ecore_wayland/Ecore_Wayland.h b/src/lib/ecore_wayland/Ecore_Wayland.h index 30545b7343..4238c46ac5 100644 --- a/src/lib/ecore_wayland/Ecore_Wayland.h +++ b/src/lib/ecore_wayland/Ecore_Wayland.h @@ -366,6 +366,10 @@ struct _Ecore_Wl_Event_Interfaces_Bound Eina_Bool compositor : 1; Eina_Bool shm : 1; Eina_Bool shell : 1; + Eina_Bool output : 1; + Eina_Bool seat : 1; + Eina_Bool data_device_manager : 1; + Eina_Bool subcompositor : 1; }; /** diff --git a/src/lib/ecore_wayland/ecore_wl.c b/src/lib/ecore_wayland/ecore_wl.c index ee614e0e4b..9e8fa467c7 100644 --- a/src/lib/ecore_wayland/ecore_wl.c +++ b/src/lib/ecore_wayland/ecore_wl.c @@ -556,6 +556,10 @@ _ecore_wl_cb_handle_global(void *data, struct wl_registry *registry, unsigned in ev->compositor = (ewd->wl.compositor != NULL); ev->shm = (ewd->wl.shm != NULL); ev->shell = (ewd->wl.shell != NULL); + ev->output = (ewd->output != NULL); + ev->seat = (ewd->input != NULL); + ev->data_device_manager = (ewd->wl.data_device_manager != NULL); + ev->subcompositor = (ewd->wl.subcompositor != NULL); ecore_event_add(ECORE_WL_EVENT_INTERFACES_BOUND, ev, NULL, NULL); }