summaryrefslogtreecommitdiffstats
path: root/wayland-system-compositor.c
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@redhat.com>2009-02-22 19:19:47 -0500
committerKristian Høgsberg <krh@redhat.com>2009-02-22 19:19:47 -0500
commit0555d8e6fc95f87a3c6b3d2e6aec65d93af5f270 (patch)
treeecadc951c40de39b2505eb36b0c77876a72c4c96 /wayland-system-compositor.c
parentb0b82e2eeb8d844dcb0677a96d55903012be314f (diff)
downloadwayland-0555d8e6fc95f87a3c6b3d2e6aec65d93af5f270.tar.gz
wayland-0555d8e6fc95f87a3c6b3d2e6aec65d93af5f270.tar.xz
wayland-0555d8e6fc95f87a3c6b3d2e6aec65d93af5f270.zip
Rename pointer_surface to sprite in wlsc_surface.
Diffstat (limited to 'wayland-system-compositor.c')
-rw-r--r--wayland-system-compositor.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/wayland-system-compositor.c b/wayland-system-compositor.c
index d236748..fb0e463 100644
--- a/wayland-system-compositor.c
+++ b/wayland-system-compositor.c
@@ -81,7 +81,7 @@ struct wlsc_input_device {
struct wl_object base;
int32_t x, y;
struct wlsc_compositor *ec;
- struct wlsc_surface *pointer_surface;
+ struct wlsc_surface *sprite;
struct wl_list link;
int grab;
@@ -602,7 +602,7 @@ repaint_output(struct wlsc_output *output)
eid = container_of(ec->input_device_list.next,
struct wlsc_input_device, link);
while (&eid->link != &ec->input_device_list) {
- wlsc_surface_draw(eid->pointer_surface);
+ wlsc_surface_draw(eid->sprite);
eid = container_of(eid->link.next,
struct wlsc_input_device, link);
@@ -919,8 +919,8 @@ notify_motion(struct wlsc_input_device *device, int x, int y)
wl_surface_post_event(&es->base, &device->base,
WL_INPUT_MOTION, x, y, sx, sy);
- device->pointer_surface->map.x = x - hotspot_x;
- device->pointer_surface->map.y = y - hotspot_y;
+ device->sprite->map.x = x - hotspot_x;
+ device->sprite->map.y = y - hotspot_y;
schedule_repaint(device->ec);
}
@@ -1420,7 +1420,7 @@ init_libudev(struct wlsc_compositor *ec)
udev_enumerate_unref(e);
/* Create the pointer surface now that we have a current EGL context. */
- input_device->pointer_surface =
+ input_device->sprite =
pointer_create(ec, input_device->x, input_device->y, 64, 64);
return 0;