[RFC] [PATCH 0/3] libwayland-cursor

Ander Conselvan de Oliveira ander.conselvan.de.oliveira at intel.com
Tue May 22 05:39:39 PDT 2012


Hi,

In order to get rid of the X11 dependency that libXcursor brings,
Kristian suggested that a libwayland-cursor be created. This library
handles the X cursor theme format, loading the image content straight
into an shm pool so that the users need just one function call for
getting a buffer for a cursor image.

The code for handling the cursor theme is just a stripped down version
of libXcursor, that is contained on the files cursor/xcursor.[ch].

The library API is quite similar to the cursor code in libtoytoolkit.

Ander Conselvan de Oliveira (2):
  shm: Add request for resizing pools
  Introduce libwayland-cursor, a cursor helper library

 Makefile.am                 |    2 +-
 configure.ac                |    2 +
 cursor/Makefile.am          |   14 +
 cursor/wayland-cursor.c     |  356 ++++++++++++++++++
 cursor/wayland-cursor.h     |   78 ++++
 cursor/wayland-cursor.pc.in |   10 +
 cursor/xcursor.c            |  856 +++++++++++++++++++++++++++++++++++++++++++
 cursor/xcursor.h            |   58 +++
 protocol/wayland.xml        |   10 +
 src/wayland-shm.c           |   33 ++-
 10 files changed, 1414 insertions(+), 5 deletions(-)
 create mode 100644 cursor/Makefile.am
 create mode 100644 cursor/wayland-cursor.c
 create mode 100644 cursor/wayland-cursor.h
 create mode 100644 cursor/wayland-cursor.pc.in
 create mode 100644 cursor/xcursor.c
 create mode 100644 cursor/xcursor.h

-- 
1.7.4.1



More information about the wayland-devel mailing list