summaryrefslogtreecommitdiff
path: root/src/data-device.c
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@bitplanet.net>2013-05-08 15:02:05 -0400
committerKristian Høgsberg <krh@bitplanet.net>2013-05-08 15:58:49 -0400
commit195b869f0eb0039e132a8f1d61c718e148099d34 (patch)
treef829fc9f433faede8871c1f05b8688a406208bf2 /src/data-device.c
parent9e885d4bec1e2512335c2e52a768ff0a02f2677c (diff)
downloadweston-195b869f0eb0039e132a8f1d61c718e148099d34.tar.gz
input: Move sprite fields into weston_pointer from weston_seat
Diffstat (limited to 'src/data-device.c')
-rw-r--r--src/data-device.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/data-device.c b/src/data-device.c
index c0fb581e..8c20d89b 100644
--- a/src/data-device.c
+++ b/src/data-device.c
@@ -166,12 +166,13 @@ static void
drag_surface_configure(struct weston_surface *es, int32_t sx, int32_t sy, int32_t width, int32_t height)
{
struct weston_seat *seat = es->configure_private;
+ struct weston_pointer *pointer = seat->pointer;
struct wl_list *list;
float fx, fy;
if (!weston_surface_is_mapped(es) && es->buffer_ref.buffer) {
- if (seat->sprite && weston_surface_is_mapped(seat->sprite))
- list = &seat->sprite->layer_link;
+ if (pointer->sprite && weston_surface_is_mapped(pointer->sprite))
+ list = &pointer->sprite->layer_link;
else
list = &seat->compositor->cursor_layer.surface_list;