wayland: Load a buffer from well known location for the cursor

Semantic changes to Wayland means that we cannot rely on the compositor
setting a pointer buffer for us if set it to nil. The first part of fixing
this is to create an shm buffer containing the bytes for our cursor.

The best way to do this currently is to load the cursor from the well known
location where weston instals its cursor images. The code to implemente this
was derivedlifted from the Wayland backend in GTK+.
This commit is contained in:
Rob Bradford
2012-01-10 16:40:59 +00:00
parent 3c99fd2ddb
commit e1434cebdb
2 changed files with 182 additions and 0 deletions

View File

@ -56,6 +56,9 @@ struct _ClutterBackendWayland
struct wl_compositor *wayland_compositor;
struct wl_shell *wayland_shell;
struct wl_shm *wayland_shm;
struct wl_buffer *cursor_buffer;
gint cursor_x, cursor_y;
GSource *wayland_source;
/* event timer */