forked from enlightenment/efl
ecore-wayland: Fix formatting
Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
parent
2f4db577b5
commit
ff29972703
|
@ -64,7 +64,8 @@ static const struct wl_callback_listener _ecore_wl_anim_listener =
|
||||||
_ecore_wl_animator_callback
|
_ecore_wl_animator_callback
|
||||||
};
|
};
|
||||||
|
|
||||||
static void xdg_shell_ping(void *data, struct xdg_shell *shell, uint32_t serial)
|
static void
|
||||||
|
xdg_shell_ping(void *data, struct xdg_shell *shell, uint32_t serial)
|
||||||
{
|
{
|
||||||
xdg_shell_pong(shell, serial);
|
xdg_shell_pong(shell, serial);
|
||||||
}
|
}
|
||||||
|
@ -74,7 +75,6 @@ static const struct xdg_shell_listener xdg_shell_listener =
|
||||||
xdg_shell_ping,
|
xdg_shell_ping,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/* external variables */
|
/* external variables */
|
||||||
int _ecore_wl_log_dom = -1;
|
int _ecore_wl_log_dom = -1;
|
||||||
Ecore_Wl_Display *_ecore_wl_disp = NULL;
|
Ecore_Wl_Display *_ecore_wl_disp = NULL;
|
||||||
|
@ -197,7 +197,8 @@ ecore_wl_init(const char *name)
|
||||||
_ecore_wl_disp->fd = wl_display_get_fd(_ecore_wl_disp->wl.display);
|
_ecore_wl_disp->fd = wl_display_get_fd(_ecore_wl_disp->wl.display);
|
||||||
|
|
||||||
_ecore_wl_disp->fd_hdl =
|
_ecore_wl_disp->fd_hdl =
|
||||||
ecore_main_fd_handler_add(_ecore_wl_disp->fd, ECORE_FD_READ | ECORE_FD_WRITE | ECORE_FD_ERROR,
|
ecore_main_fd_handler_add(_ecore_wl_disp->fd,
|
||||||
|
ECORE_FD_READ | ECORE_FD_WRITE | ECORE_FD_ERROR,
|
||||||
_ecore_wl_cb_handle_data, _ecore_wl_disp,
|
_ecore_wl_cb_handle_data, _ecore_wl_disp,
|
||||||
NULL, NULL);
|
NULL, NULL);
|
||||||
|
|
||||||
|
@ -463,12 +464,12 @@ _ecore_wl_shutdown(Eina_Bool close)
|
||||||
_ecore_wl_input_del(in);
|
_ecore_wl_input_del(in);
|
||||||
|
|
||||||
EINA_INLIST_FOREACH_SAFE(_ecore_wl_disp->globals, tmp, global)
|
EINA_INLIST_FOREACH_SAFE(_ecore_wl_disp->globals, tmp, global)
|
||||||
{
|
{
|
||||||
_ecore_wl_disp->globals = eina_inlist_remove
|
_ecore_wl_disp->globals = eina_inlist_remove
|
||||||
(_ecore_wl_disp->globals, EINA_INLIST_GET(global));
|
(_ecore_wl_disp->globals, EINA_INLIST_GET(global));
|
||||||
free(global->interface);
|
free(global->interface);
|
||||||
free(global);
|
free(global);
|
||||||
}
|
}
|
||||||
|
|
||||||
_ecore_wl_xkb_shutdown(_ecore_wl_disp);
|
_ecore_wl_xkb_shutdown(_ecore_wl_disp);
|
||||||
|
|
||||||
|
@ -675,8 +676,8 @@ _ecore_wl_cb_handle_global_remove(void *data, struct wl_registry *registry EINA_
|
||||||
EINA_INLIST_FOREACH_SAFE(ewd->globals, tmp, global)
|
EINA_INLIST_FOREACH_SAFE(ewd->globals, tmp, global)
|
||||||
{
|
{
|
||||||
if (global->id != id) continue;
|
if (global->id != id) continue;
|
||||||
ewd->globals = eina_inlist_remove(ewd->globals,
|
ewd->globals =
|
||||||
EINA_INLIST_GET(global));
|
eina_inlist_remove(ewd->globals, EINA_INLIST_GET(global));
|
||||||
free(global->interface);
|
free(global->interface);
|
||||||
free(global);
|
free(global);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue