wayland: Support for setting a cursor image

Closes #346.
This commit is contained in:
Ricardo Vieira
2014-09-09 16:37:55 +02:00
committed by Camilla Berglund
parent 8d170c7f47
commit 25204b1ec7
4 changed files with 248 additions and 23 deletions
+10 -3
View File
@@ -66,7 +66,7 @@ typedef struct _GLFWwindowWayland
struct wl_shell_surface* shell_surface;
EGLSurface egl_surface;
struct wl_callback* callback;
_GLFWcursor* currentCursor;
} _GLFWwindowWayland;
@@ -78,10 +78,16 @@ typedef struct _GLFWlibraryWayland
struct wl_registry* registry;
struct wl_compositor* compositor;
struct wl_shell* shell;
struct wl_shm* shm;
struct wl_seat* seat;
struct wl_pointer* pointer;
struct wl_keyboard* keyboard;
struct wl_cursor_theme* cursorTheme;
struct wl_cursor* defaultCursor;
struct wl_surface* cursorSurface;
uint32_t pointerSerial;
_GLFWmonitor** monitors;
int monitorsCount;
int monitorsSize;
@@ -124,8 +130,9 @@ typedef struct _GLFWmonitorWayland
//
typedef struct _GLFWcursorWayland
{
int dummy;
struct wl_buffer* buffer;
int width, height;
int xhot, yhot;
} _GLFWcursorWayland;