summaryrefslogtreecommitdiff
path: root/desktop-shell
diff options
context:
space:
mode:
authorDerek Foreman <derekf@osg.samsung.com>2015-08-05 14:48:11 -0500
committerDaniel Stone <daniels@collabora.com>2015-08-06 16:16:14 +0100
commite4d6c83986fb4897c38371b936110d9b7d5a8345 (patch)
tree0a3b5ac3e8b4afe13adc47d89bd3a14c19bd75c5 /desktop-shell
parent88249cdc281bea5a093d26720bd8a0329dad00c9 (diff)
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>
Diffstat (limited to 'desktop-shell')
-rw-r--r--desktop-shell/shell.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/desktop-shell/shell.c b/desktop-shell/shell.c
index 05aa340d..f420384f 100644
--- a/desktop-shell/shell.c
+++ b/desktop-shell/shell.c
@@ -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;