desktop-shell: Make resize and move functions take a pointer instead of a seat

An earlier patch made surface_resize() and surface_move() take pointers
instead of seats, this updates the weston_shell_interface resize and move to
match.

Signed-off-by: Derek Foreman <derekf@osg.samsung.com>
Reviewed-by: Daniel Stone <daniels@collabora.com>
This commit is contained in:
Derek Foreman
2015-08-05 14:48:11 -05:00
committed by Daniel Stone
parent 88249cdc28
commit e4d6c83986
3 changed files with 15 additions and 12 deletions
+4 -4
View File
@@ -3087,17 +3087,17 @@ shell_interface_set_maximized(struct shell_surface *shsurf)
}
static int
shell_interface_move(struct shell_surface *shsurf, struct weston_seat *ws)
shell_interface_move(struct shell_surface *shsurf, struct weston_pointer *pointer)
{
return surface_move(shsurf, weston_seat_get_pointer(ws), true);
return surface_move(shsurf, pointer, true);
}
static int
shell_interface_resize(struct shell_surface *shsurf,
struct weston_seat *ws,
struct weston_pointer *pointer,
uint32_t edges)
{
return surface_resize(shsurf, weston_seat_get_pointer(ws), edges);
return surface_resize(shsurf, pointer, edges);
}
static const struct weston_pointer_grab_interface popup_grab_interface;