2017-11-19 20:54:36 +03:00
|
|
|
//========================================================================
|
2019-07-18 20:08:14 +03:00
|
|
|
// GLFW 3.4 Wayland - www.glfw.org
|
2017-11-19 20:54:36 +03:00
|
|
|
//------------------------------------------------------------------------
|
|
|
|
// Copyright (c) 2014 Jonas Ådahl <jadahl@gmail.com>
|
|
|
|
//
|
|
|
|
// This software is provided 'as-is', without any express or implied
|
|
|
|
// warranty. In no event will the authors be held liable for any damages
|
|
|
|
// arising from the use of this software.
|
|
|
|
//
|
|
|
|
// Permission is granted to anyone to use this software for any purpose,
|
|
|
|
// including commercial applications, and to alter it and redistribute it
|
|
|
|
// freely, subject to the following restrictions:
|
|
|
|
//
|
|
|
|
// 1. The origin of this software must not be misrepresented; you must not
|
|
|
|
// claim that you wrote the original software. If you use this software
|
|
|
|
// in a product, an acknowledgment in the product documentation would
|
|
|
|
// be appreciated but is not required.
|
|
|
|
//
|
|
|
|
// 2. Altered source versions must be plainly marked as such, and must not
|
|
|
|
// be misrepresented as being the original software.
|
|
|
|
//
|
|
|
|
// 3. This notice may not be removed or altered from any source
|
|
|
|
// distribution.
|
|
|
|
//
|
|
|
|
//========================================================================
|
|
|
|
|
|
|
|
#include <wayland-client.h>
|
|
|
|
#include <dlfcn.h>
|
2018-06-08 06:44:14 +03:00
|
|
|
#include <poll.h>
|
2017-11-19 20:54:36 +03:00
|
|
|
|
|
|
|
typedef VkFlags VkWaylandSurfaceCreateFlagsKHR;
|
|
|
|
|
|
|
|
typedef struct VkWaylandSurfaceCreateInfoKHR
|
|
|
|
{
|
|
|
|
VkStructureType sType;
|
|
|
|
const void* pNext;
|
|
|
|
VkWaylandSurfaceCreateFlagsKHR flags;
|
|
|
|
struct wl_display* display;
|
|
|
|
struct wl_surface* surface;
|
|
|
|
} VkWaylandSurfaceCreateInfoKHR;
|
|
|
|
|
|
|
|
typedef VkResult (APIENTRY *PFN_vkCreateWaylandSurfaceKHR)(VkInstance,const VkWaylandSurfaceCreateInfoKHR*,const VkAllocationCallbacks*,VkSurfaceKHR*);
|
|
|
|
typedef VkBool32 (APIENTRY *PFN_vkGetPhysicalDeviceWaylandPresentationSupportKHR)(VkPhysicalDevice,uint32_t,struct wl_display*);
|
|
|
|
|
|
|
|
#include "posix_thread.h"
|
2018-03-28 07:17:16 +03:00
|
|
|
#ifdef __linux__
|
2017-11-19 20:54:36 +03:00
|
|
|
#include "linux_joystick.h"
|
2018-03-28 07:17:16 +03:00
|
|
|
#else
|
|
|
|
#include "null_joystick.h"
|
|
|
|
#endif
|
2018-07-09 10:58:51 +03:00
|
|
|
#include "backend_utils.h"
|
2018-03-28 12:56:56 +03:00
|
|
|
#include "xkb_glfw.h"
|
2020-06-01 17:56:28 +03:00
|
|
|
#include "wl_cursors.h"
|
2017-11-19 20:54:36 +03:00
|
|
|
|
2018-01-29 10:00:05 +03:00
|
|
|
#include "wayland-xdg-shell-client-protocol.h"
|
2018-10-03 09:57:51 +03:00
|
|
|
#include "wayland-xdg-decoration-unstable-v1-client-protocol.h"
|
2017-11-19 20:54:36 +03:00
|
|
|
#include "wayland-relative-pointer-unstable-v1-client-protocol.h"
|
|
|
|
#include "wayland-pointer-constraints-unstable-v1-client-protocol.h"
|
2017-11-26 09:20:55 +03:00
|
|
|
#include "wayland-idle-inhibit-unstable-v1-client-protocol.h"
|
2018-11-13 22:58:02 +03:00
|
|
|
#include "wayland-primary-selection-unstable-v1-client-protocol.h"
|
2021-03-23 12:37:40 +03:00
|
|
|
#include "wl_text_input.h"
|
2017-11-19 20:54:36 +03:00
|
|
|
|
|
|
|
#define _glfw_dlopen(name) dlopen(name, RTLD_LAZY | RTLD_LOCAL)
|
|
|
|
#define _glfw_dlclose(handle) dlclose(handle)
|
|
|
|
#define _glfw_dlsym(handle, name) dlsym(handle, name)
|
|
|
|
|
|
|
|
#define _GLFW_PLATFORM_WINDOW_STATE _GLFWwindowWayland wl
|
|
|
|
#define _GLFW_PLATFORM_LIBRARY_WINDOW_STATE _GLFWlibraryWayland wl
|
|
|
|
#define _GLFW_PLATFORM_MONITOR_STATE _GLFWmonitorWayland wl
|
|
|
|
#define _GLFW_PLATFORM_CURSOR_STATE _GLFWcursorWayland wl
|
|
|
|
|
|
|
|
#define _GLFW_PLATFORM_CONTEXT_STATE
|
|
|
|
#define _GLFW_PLATFORM_LIBRARY_CONTEXT_STATE
|
|
|
|
|
2018-01-29 10:00:05 +03:00
|
|
|
typedef struct wl_cursor_theme* (* PFN_wl_cursor_theme_load)(const char*, int, struct wl_shm*);
|
|
|
|
typedef void (* PFN_wl_cursor_theme_destroy)(struct wl_cursor_theme*);
|
|
|
|
typedef struct wl_cursor* (* PFN_wl_cursor_theme_get_cursor)(struct wl_cursor_theme*, const char*);
|
|
|
|
typedef struct wl_buffer* (* PFN_wl_cursor_image_get_buffer)(struct wl_cursor_image*);
|
|
|
|
#define wl_cursor_theme_load _glfw.wl.cursor.theme_load
|
|
|
|
#define wl_cursor_theme_destroy _glfw.wl.cursor.theme_destroy
|
|
|
|
#define wl_cursor_theme_get_cursor _glfw.wl.cursor.theme_get_cursor
|
|
|
|
#define wl_cursor_image_get_buffer _glfw.wl.cursor.image_get_buffer
|
|
|
|
|
|
|
|
typedef struct wl_egl_window* (* PFN_wl_egl_window_create)(struct wl_surface*, int, int);
|
|
|
|
typedef void (* PFN_wl_egl_window_destroy)(struct wl_egl_window*);
|
|
|
|
typedef void (* PFN_wl_egl_window_resize)(struct wl_egl_window*, int, int, int, int);
|
|
|
|
#define wl_egl_window_create _glfw.wl.egl.window_create
|
|
|
|
#define wl_egl_window_destroy _glfw.wl.egl.window_destroy
|
|
|
|
#define wl_egl_window_resize _glfw.wl.egl.window_resize
|
|
|
|
|
2018-03-03 08:51:09 +03:00
|
|
|
typedef enum _GLFWdecorationSideWayland
|
|
|
|
{
|
2021-03-26 10:40:54 +03:00
|
|
|
CENTRAL_WINDOW,
|
|
|
|
TOP_DECORATION,
|
|
|
|
LEFT_DECORATION,
|
|
|
|
RIGHT_DECORATION,
|
|
|
|
BOTTOM_DECORATION,
|
2018-03-03 08:51:09 +03:00
|
|
|
} _GLFWdecorationSideWayland;
|
|
|
|
|
2021-03-28 06:38:11 +03:00
|
|
|
typedef struct _GLFWWaylandBufferPair {
|
|
|
|
struct wl_buffer *a, *b, *front, *back;
|
|
|
|
struct { uint8_t *a, *b, *front, *back; } data;
|
2021-03-28 08:53:51 +03:00
|
|
|
bool has_pending_update;
|
2021-03-28 06:38:11 +03:00
|
|
|
size_t size_in_bytes, width, height, stride;
|
|
|
|
} _GLFWWaylandBufferPair;
|
|
|
|
|
|
|
|
typedef struct _GLFWWaylandCSDEdge {
|
|
|
|
struct wl_surface *surface;
|
|
|
|
struct wl_subsurface *subsurface;
|
|
|
|
_GLFWWaylandBufferPair buffer;
|
|
|
|
int x, y;
|
|
|
|
} _GLFWWaylandCSDEdge;
|
|
|
|
|
2021-04-07 11:03:06 +03:00
|
|
|
typedef enum WaylandWindowState {
|
|
|
|
|
|
|
|
TOPLEVEL_STATE_NONE = 0,
|
|
|
|
TOPLEVEL_STATE_MAXIMIZED = 1,
|
|
|
|
TOPLEVEL_STATE_FULLSCREEN = 2,
|
2022-08-08 16:24:53 +03:00
|
|
|
TOPLEVEL_STATE_RESIZING = 4,
|
|
|
|
TOPLEVEL_STATE_ACTIVATED = 8,
|
|
|
|
TOPLEVEL_STATE_TILED_LEFT = 16,
|
|
|
|
TOPLEVEL_STATE_TILED_RIGHT = 32,
|
|
|
|
TOPLEVEL_STATE_TILED_TOP = 64,
|
|
|
|
TOPLEVEL_STATE_TILED_BOTTOM = 128,
|
2021-04-07 11:03:06 +03:00
|
|
|
} WaylandWindowState;
|
|
|
|
|
|
|
|
|
|
|
|
static const WaylandWindowState TOPLEVEL_STATE_DOCKED = TOPLEVEL_STATE_MAXIMIZED | TOPLEVEL_STATE_FULLSCREEN | TOPLEVEL_STATE_TILED_TOP | TOPLEVEL_STATE_TILED_LEFT | TOPLEVEL_STATE_TILED_RIGHT | TOPLEVEL_STATE_TILED_BOTTOM;
|
|
|
|
|
2022-03-10 13:47:38 +03:00
|
|
|
enum WaylandWindowPendingState {
|
|
|
|
PENDING_STATE_TOPLEVEL = 1,
|
2022-03-10 14:01:50 +03:00
|
|
|
PENDING_STATE_DECORATION = 2
|
2022-03-10 13:47:38 +03:00
|
|
|
};
|
2017-11-19 20:54:36 +03:00
|
|
|
|
|
|
|
// Wayland-specific per-window data
|
|
|
|
//
|
|
|
|
typedef struct _GLFWwindowWayland
|
|
|
|
{
|
2022-03-10 13:48:00 +03:00
|
|
|
int width, height;
|
2019-06-12 15:55:32 +03:00
|
|
|
bool visible;
|
|
|
|
bool hovered;
|
|
|
|
bool transparent;
|
2017-11-19 20:54:36 +03:00
|
|
|
struct wl_surface* surface;
|
|
|
|
struct wl_egl_window* native;
|
|
|
|
struct wl_callback* callback;
|
|
|
|
|
2018-01-29 10:00:05 +03:00
|
|
|
struct {
|
|
|
|
struct xdg_surface* surface;
|
|
|
|
struct xdg_toplevel* toplevel;
|
2018-10-03 09:57:51 +03:00
|
|
|
struct zxdg_toplevel_decoration_v1* decoration;
|
2018-01-29 10:00:05 +03:00
|
|
|
} xdg;
|
|
|
|
|
2017-11-19 20:54:36 +03:00
|
|
|
_GLFWcursor* currentCursor;
|
2021-03-25 06:57:25 +03:00
|
|
|
double cursorPosX, cursorPosY, allCursorPosX, allCursorPosY;
|
2017-11-19 20:54:36 +03:00
|
|
|
|
|
|
|
char* title;
|
2018-09-06 04:24:04 +03:00
|
|
|
char appId[256];
|
2017-11-19 20:54:36 +03:00
|
|
|
|
|
|
|
// We need to track the monitors the window spans on to calculate the
|
|
|
|
// optimal scaling factor.
|
|
|
|
int scale;
|
2019-11-16 08:17:05 +03:00
|
|
|
bool initial_scale_notified;
|
2017-11-19 20:54:36 +03:00
|
|
|
_GLFWmonitor** monitors;
|
|
|
|
int monitorsCount;
|
|
|
|
int monitorsSize;
|
|
|
|
|
|
|
|
struct {
|
|
|
|
struct zwp_relative_pointer_v1* relativePointer;
|
|
|
|
struct zwp_locked_pointer_v1* lockedPointer;
|
|
|
|
} pointerLock;
|
2017-11-26 09:20:55 +03:00
|
|
|
|
|
|
|
struct zwp_idle_inhibitor_v1* idleInhibitor;
|
|
|
|
|
2018-03-03 08:51:09 +03:00
|
|
|
struct {
|
2022-06-03 08:30:56 +03:00
|
|
|
bool serverSide, buffer_destroyed;
|
2021-03-26 10:40:54 +03:00
|
|
|
_GLFWdecorationSideWayland focus;
|
2021-03-28 06:38:11 +03:00
|
|
|
_GLFWWaylandCSDEdge top, left, right, bottom;
|
2021-03-26 10:40:54 +03:00
|
|
|
|
|
|
|
struct {
|
|
|
|
uint8_t *data;
|
2021-03-28 06:38:11 +03:00
|
|
|
size_t size;
|
|
|
|
} mapping;
|
2021-03-26 10:40:54 +03:00
|
|
|
|
|
|
|
struct {
|
|
|
|
int width, height, scale;
|
2021-03-26 22:11:21 +03:00
|
|
|
bool focused;
|
2021-03-26 21:56:43 +03:00
|
|
|
} for_window_state;
|
2021-03-26 10:40:54 +03:00
|
|
|
|
|
|
|
struct {
|
2021-04-07 12:38:44 +03:00
|
|
|
unsigned int width, top, horizontal, vertical, visible_titlebar_height;
|
2021-03-26 10:40:54 +03:00
|
|
|
} metrics;
|
2021-04-04 11:12:53 +03:00
|
|
|
|
2021-04-07 19:44:09 +03:00
|
|
|
struct {
|
|
|
|
int32_t x, y, width, height;
|
|
|
|
} geometry;
|
|
|
|
|
2021-04-04 11:12:53 +03:00
|
|
|
struct {
|
|
|
|
uint32_t *data;
|
|
|
|
size_t for_decoration_size, stride, segments, corner_size;
|
|
|
|
} shadow_tile;
|
2021-04-19 06:28:29 +03:00
|
|
|
monotonic_t last_click_on_top_decoration_at;
|
2021-04-25 08:52:23 +03:00
|
|
|
|
|
|
|
uint32_t titlebar_color;
|
|
|
|
bool use_custom_titlebar_color;
|
2018-03-03 08:51:09 +03:00
|
|
|
} decorations;
|
|
|
|
|
2018-10-26 06:19:17 +03:00
|
|
|
struct {
|
|
|
|
unsigned long long id;
|
|
|
|
void(*callback)(unsigned long long id);
|
|
|
|
struct wl_callback *current_wl_callback;
|
|
|
|
} frameCallbackData;
|
|
|
|
|
2021-04-05 11:17:50 +03:00
|
|
|
struct {
|
|
|
|
int32_t width, height;
|
2021-04-07 12:38:44 +03:00
|
|
|
} user_requested_content_size;
|
2021-04-07 11:03:06 +03:00
|
|
|
|
|
|
|
bool maximize_on_first_show;
|
2022-02-13 18:26:55 +03:00
|
|
|
// counters for ignoring axis events following axis_discrete events in the
|
|
|
|
// same frame along the same axis
|
|
|
|
struct {
|
|
|
|
unsigned int x, y;
|
|
|
|
} axis_discrete_count;
|
2022-03-17 15:05:56 +03:00
|
|
|
bool surface_configured_once;
|
2021-04-05 11:17:50 +03:00
|
|
|
|
2022-03-10 13:47:38 +03:00
|
|
|
uint32_t pending_state;
|
2022-03-01 05:16:45 +03:00
|
|
|
struct {
|
|
|
|
int width, height;
|
|
|
|
uint32_t toplevel_states;
|
2022-03-10 14:01:50 +03:00
|
|
|
uint32_t decoration_mode;
|
2022-03-01 05:16:45 +03:00
|
|
|
} current, pending;
|
2017-11-19 20:54:36 +03:00
|
|
|
} _GLFWwindowWayland;
|
|
|
|
|
2018-10-25 19:22:47 +03:00
|
|
|
typedef enum _GLFWWaylandOfferType
|
|
|
|
{
|
|
|
|
EXPIRED,
|
|
|
|
CLIPBOARD,
|
|
|
|
DRAG_AND_DROP,
|
|
|
|
PRIMARY_SELECTION
|
|
|
|
}_GLFWWaylandOfferType ;
|
|
|
|
|
2018-09-05 15:24:26 +03:00
|
|
|
typedef struct _GLFWWaylandDataOffer
|
|
|
|
{
|
2020-03-19 10:30:52 +03:00
|
|
|
void *id;
|
2018-10-25 19:22:47 +03:00
|
|
|
_GLFWWaylandOfferType offer_type;
|
2018-09-05 15:24:26 +03:00
|
|
|
size_t idx;
|
2020-03-19 10:30:52 +03:00
|
|
|
bool is_self_offer;
|
|
|
|
bool is_primary;
|
2021-11-03 18:16:33 +03:00
|
|
|
const char *mime_for_drop;
|
2018-09-05 17:28:55 +03:00
|
|
|
uint32_t source_actions;
|
|
|
|
uint32_t dnd_action;
|
2018-09-05 19:11:47 +03:00
|
|
|
struct wl_surface *surface;
|
2020-03-19 10:30:52 +03:00
|
|
|
const char **mimes;
|
|
|
|
size_t mimes_capacity, mimes_count;
|
2018-09-05 15:24:26 +03:00
|
|
|
} _GLFWWaylandDataOffer;
|
|
|
|
|
2017-11-19 20:54:36 +03:00
|
|
|
// Wayland-specific global data
|
|
|
|
//
|
|
|
|
typedef struct _GLFWlibraryWayland
|
|
|
|
{
|
|
|
|
struct wl_display* display;
|
|
|
|
struct wl_registry* registry;
|
|
|
|
struct wl_compositor* compositor;
|
2018-03-03 08:51:09 +03:00
|
|
|
struct wl_subcompositor* subcompositor;
|
2017-11-19 20:54:36 +03:00
|
|
|
struct wl_shm* shm;
|
|
|
|
struct wl_seat* seat;
|
|
|
|
struct wl_pointer* pointer;
|
|
|
|
struct wl_keyboard* keyboard;
|
2020-10-26 00:44:47 +03:00
|
|
|
struct wl_data_device_manager* dataDeviceManager;
|
|
|
|
struct wl_data_device* dataDevice;
|
2018-01-29 10:00:05 +03:00
|
|
|
struct xdg_wm_base* wmBase;
|
2018-10-03 09:57:51 +03:00
|
|
|
struct zxdg_decoration_manager_v1* decorationManager;
|
2017-11-19 20:54:36 +03:00
|
|
|
struct zwp_relative_pointer_manager_v1* relativePointerManager;
|
|
|
|
struct zwp_pointer_constraints_v1* pointerConstraints;
|
2017-11-26 09:20:55 +03:00
|
|
|
struct zwp_idle_inhibit_manager_v1* idleInhibitManager;
|
2018-09-04 19:52:43 +03:00
|
|
|
struct wl_data_source* dataSourceForClipboard;
|
2018-11-13 22:58:02 +03:00
|
|
|
struct zwp_primary_selection_device_manager_v1* primarySelectionDeviceManager;
|
|
|
|
struct zwp_primary_selection_device_v1* primarySelectionDevice;
|
|
|
|
struct zwp_primary_selection_source_v1* dataSourceForPrimarySelection;
|
2017-11-19 20:54:36 +03:00
|
|
|
|
|
|
|
int compositorVersion;
|
2018-03-03 08:51:09 +03:00
|
|
|
int seatVersion;
|
2017-11-19 20:54:36 +03:00
|
|
|
|
|
|
|
struct wl_surface* cursorSurface;
|
2019-11-22 04:12:42 +03:00
|
|
|
GLFWCursorShape cursorPreviousShape;
|
2020-05-25 17:40:21 +03:00
|
|
|
uint32_t serial;
|
2017-11-19 20:54:36 +03:00
|
|
|
|
2018-03-03 08:51:09 +03:00
|
|
|
int32_t keyboardRepeatRate;
|
2019-08-02 19:49:02 +03:00
|
|
|
monotonic_t keyboardRepeatDelay;
|
2020-10-26 00:44:47 +03:00
|
|
|
|
2017-11-19 20:54:36 +03:00
|
|
|
struct {
|
2018-03-29 22:27:02 +03:00
|
|
|
uint32_t key;
|
2018-07-09 17:43:05 +03:00
|
|
|
id_type keyRepeatTimer;
|
2021-01-29 06:13:00 +03:00
|
|
|
GLFWid keyboardFocusId;
|
2018-03-28 12:56:56 +03:00
|
|
|
} keyRepeatInfo;
|
2018-09-10 09:24:22 +03:00
|
|
|
id_type cursorAnimationTimer;
|
2018-03-28 12:56:56 +03:00
|
|
|
_GLFWXKBData xkb;
|
2018-07-08 18:17:48 +03:00
|
|
|
_GLFWDBUSData dbus;
|
2017-11-19 20:54:36 +03:00
|
|
|
|
|
|
|
_GLFWwindow* pointerFocus;
|
2021-01-29 08:52:39 +03:00
|
|
|
GLFWid keyboardFocusId;
|
2017-11-19 20:54:36 +03:00
|
|
|
|
2018-01-29 10:00:05 +03:00
|
|
|
struct {
|
|
|
|
void* handle;
|
|
|
|
|
|
|
|
PFN_wl_cursor_theme_load theme_load;
|
|
|
|
PFN_wl_cursor_theme_destroy theme_destroy;
|
|
|
|
PFN_wl_cursor_theme_get_cursor theme_get_cursor;
|
|
|
|
PFN_wl_cursor_image_get_buffer image_get_buffer;
|
|
|
|
} cursor;
|
|
|
|
|
|
|
|
struct {
|
|
|
|
void* handle;
|
|
|
|
|
|
|
|
PFN_wl_egl_window_create window_create;
|
|
|
|
PFN_wl_egl_window_destroy window_destroy;
|
|
|
|
PFN_wl_egl_window_resize window_resize;
|
|
|
|
} egl;
|
|
|
|
|
2018-07-09 10:58:51 +03:00
|
|
|
EventLoopData eventLoopData;
|
2018-09-05 15:24:26 +03:00
|
|
|
size_t dataOffersCounter;
|
|
|
|
_GLFWWaylandDataOffer dataOffers[8];
|
2017-11-19 20:54:36 +03:00
|
|
|
} _GLFWlibraryWayland;
|
|
|
|
|
|
|
|
// Wayland-specific per-monitor data
|
|
|
|
//
|
|
|
|
typedef struct _GLFWmonitorWayland
|
|
|
|
{
|
|
|
|
struct wl_output* output;
|
2019-07-01 08:12:07 +03:00
|
|
|
uint32_t name;
|
2017-11-19 20:54:36 +03:00
|
|
|
int currentMode;
|
|
|
|
|
|
|
|
int x;
|
|
|
|
int y;
|
|
|
|
int scale;
|
2020-10-26 00:44:47 +03:00
|
|
|
|
|
|
|
} _GLFWmonitorWayland;
|
2017-11-19 20:54:36 +03:00
|
|
|
|
|
|
|
// Wayland-specific per-cursor data
|
|
|
|
//
|
|
|
|
typedef struct _GLFWcursorWayland
|
|
|
|
{
|
2018-09-10 09:24:22 +03:00
|
|
|
struct wl_cursor* cursor;
|
2017-11-19 20:54:36 +03:00
|
|
|
struct wl_buffer* buffer;
|
|
|
|
int width, height;
|
|
|
|
int xhot, yhot;
|
2020-06-29 05:33:25 +03:00
|
|
|
unsigned int currentImage;
|
2020-05-27 06:51:34 +03:00
|
|
|
/** The scale of the cursor, or 0 if the cursor should be loaded late, or -1 if the cursor variable itself is unused. */
|
|
|
|
int scale;
|
|
|
|
/** Cursor shape stored to allow late cursor loading in setCursorImage. */
|
|
|
|
GLFWCursorShape shape;
|
2017-11-19 20:54:36 +03:00
|
|
|
} _GLFWcursorWayland;
|
|
|
|
|
|
|
|
|
|
|
|
void _glfwAddOutputWayland(uint32_t name, uint32_t version);
|
2019-05-13 08:29:01 +03:00
|
|
|
void _glfwSetupWaylandDataDevice(void);
|
|
|
|
void _glfwSetupWaylandPrimarySelectionDevice(void);
|
2018-09-10 09:24:22 +03:00
|
|
|
void animateCursorImage(id_type timer_id, void *data);
|
2020-05-27 06:51:34 +03:00
|
|
|
struct wl_cursor* _glfwLoadCursor(GLFWCursorShape, struct wl_cursor_theme*);
|
2020-03-19 10:30:52 +03:00
|
|
|
void destroy_data_offer(_GLFWWaylandDataOffer*);
|