forked from enlightenment/efl
ecore-wl2: Add support for xdg shell listener
Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
parent
353ecac25e
commit
e0fdb907dc
|
@ -4,6 +4,17 @@
|
||||||
|
|
||||||
#include "ecore_wl2_private.h"
|
#include "ecore_wl2_private.h"
|
||||||
|
|
||||||
|
static void
|
||||||
|
_xdg_shell_cb_ping(void *data EINA_UNUSED, struct xdg_shell *shell, uint32_t serial)
|
||||||
|
{
|
||||||
|
xdg_shell_pong(shell, serial);
|
||||||
|
}
|
||||||
|
|
||||||
|
static const struct xdg_shell_listener _xdg_shell_listener =
|
||||||
|
{
|
||||||
|
_xdg_shell_cb_ping
|
||||||
|
};
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_cb_global_event_free(void *data EINA_UNUSED, void *event)
|
_cb_global_event_free(void *data EINA_UNUSED, void *event)
|
||||||
{
|
{
|
||||||
|
@ -74,7 +85,7 @@ _cb_global_add(void *data, struct wl_registry *registry, unsigned int id, const
|
||||||
ewd->wl.xdg_shell =
|
ewd->wl.xdg_shell =
|
||||||
wl_registry_bind(registry, id, &xdg_shell_interface, 1);
|
wl_registry_bind(registry, id, &xdg_shell_interface, 1);
|
||||||
xdg_shell_use_unstable_version(ewd->wl.xdg_shell, XDG_VERSION);
|
xdg_shell_use_unstable_version(ewd->wl.xdg_shell, XDG_VERSION);
|
||||||
/* TODO: Add listener */
|
xdg_shell_add_listener(ewd->wl.xdg_shell, &_xdg_shell_listener, NULL);
|
||||||
}
|
}
|
||||||
else if (!strcmp(interface, "wl_output"))
|
else if (!strcmp(interface, "wl_output"))
|
||||||
_ecore_wl2_output_add(ewd, id);
|
_ecore_wl2_output_add(ewd, id);
|
||||||
|
|
Loading…
Reference in New Issue