wayland: Support for setting a cursor image
Closes #346.
diff --git a/src/wl_platform.h b/src/wl_platform.h
index 8179917..a498e38 100644
--- a/src/wl_platform.h
+++ b/src/wl_platform.h
@@ -66,7 +66,7 @@
struct wl_shell_surface* shell_surface;
EGLSurface egl_surface;
struct wl_callback* callback;
-
+ _GLFWcursor* currentCursor;
} _GLFWwindowWayland;
@@ -78,10 +78,16 @@
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 _GLFWcursorWayland
{
- int dummy;
-
+ struct wl_buffer* buffer;
+ int width, height;
+ int xhot, yhot;
} _GLFWcursorWayland;