diff --git a/libweston-desktop/wl-shell.c b/libweston-desktop/wl-shell.c index ded69f73..b5ad334e 100644 --- a/libweston-desktop/wl-shell.c +++ b/libweston-desktop/wl-shell.c @@ -231,8 +231,10 @@ weston_desktop_wl_shell_surface_protocol_resize(struct wl_client *wl_client, struct weston_seat *seat = wl_resource_get_user_data(seat_resource); struct weston_desktop_wl_shell_surface *surface = weston_desktop_surface_get_implementation_data(dsurface); + enum weston_desktop_surface_edge surf_edges = + (enum weston_desktop_surface_edge) edges; - weston_desktop_api_resize(surface->desktop, dsurface, seat, serial, edges); + weston_desktop_api_resize(surface->desktop, dsurface, seat, serial, surf_edges); } static void diff --git a/libweston-desktop/xdg-shell-v5.c b/libweston-desktop/xdg-shell-v5.c index 14216b08..9fd3a872 100644 --- a/libweston-desktop/xdg-shell-v5.c +++ b/libweston-desktop/xdg-shell-v5.c @@ -395,9 +395,11 @@ weston_desktop_xdg_surface_protocol_resize(struct wl_client *wl_client, wl_resource_get_user_data(seat_resource); struct weston_desktop_xdg_surface *surface = weston_desktop_surface_get_implementation_data(dsurface); + enum weston_desktop_surface_edge surf_edges = + (enum weston_desktop_surface_edge) edges; weston_desktop_xdg_surface_ensure_added(surface); - weston_desktop_api_resize(surface->desktop, dsurface, seat, serial, edges); + weston_desktop_api_resize(surface->desktop, dsurface, seat, serial, surf_edges); } static void diff --git a/libweston-desktop/xdg-shell-v6.c b/libweston-desktop/xdg-shell-v6.c index 2afce81a..552b3306 100644 --- a/libweston-desktop/xdg-shell-v6.c +++ b/libweston-desktop/xdg-shell-v6.c @@ -396,6 +396,8 @@ weston_desktop_xdg_toplevel_protocol_resize(struct wl_client *wl_client, wl_resource_get_user_data(seat_resource); struct weston_desktop_xdg_toplevel *toplevel = weston_desktop_surface_get_implementation_data(dsurface); + enum weston_desktop_surface_edge surf_edges = + (enum weston_desktop_surface_edge) edges; if (!toplevel->base.configured) { wl_resource_post_error(toplevel->resource, @@ -405,7 +407,7 @@ weston_desktop_xdg_toplevel_protocol_resize(struct wl_client *wl_client, } weston_desktop_api_resize(toplevel->base.desktop, - dsurface, seat, serial, edges); + dsurface, seat, serial, surf_edges); } static void