mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-16 11:06:49 +01:00
Wayland: Fixed storing a theme cursor which is never used in video data.
This commit is contained in:
parent
a29a925d7e
commit
fa77df4e91
@ -253,7 +253,6 @@ display_handle_global(void *data, struct wl_registry *registry, uint32_t id,
|
|||||||
} else if (strcmp(interface, "wl_shm") == 0) {
|
} else if (strcmp(interface, "wl_shm") == 0) {
|
||||||
d->shm = wl_registry_bind(registry, id, &wl_shm_interface, 1);
|
d->shm = wl_registry_bind(registry, id, &wl_shm_interface, 1);
|
||||||
d->cursor_theme = WAYLAND_wl_cursor_theme_load(NULL, 32, d->shm);
|
d->cursor_theme = WAYLAND_wl_cursor_theme_load(NULL, 32, d->shm);
|
||||||
d->default_cursor = WAYLAND_wl_cursor_theme_get_cursor(d->cursor_theme, "left_ptr");
|
|
||||||
|
|
||||||
#ifdef SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH
|
#ifdef SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH
|
||||||
} else if (strcmp(interface, "qt_touch_extension") == 0) {
|
} else if (strcmp(interface, "qt_touch_extension") == 0) {
|
||||||
|
@ -42,7 +42,6 @@ typedef struct {
|
|||||||
struct wl_compositor *compositor;
|
struct wl_compositor *compositor;
|
||||||
struct wl_shm *shm;
|
struct wl_shm *shm;
|
||||||
struct wl_cursor_theme *cursor_theme;
|
struct wl_cursor_theme *cursor_theme;
|
||||||
struct wl_cursor *default_cursor;
|
|
||||||
struct wl_pointer *pointer;
|
struct wl_pointer *pointer;
|
||||||
struct wl_shell *shell;
|
struct wl_shell *shell;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user