From f8ae3ef1eb8043b1d166dd268066b4496224aaad Mon Sep 17 00:00:00 2001
From: takase1121 <[EMAIL REDACTED]>
Date: Wed, 15 Jun 2022 22:01:59 +0800
Subject: [PATCH] wayland: use libdecor resize edge enums for libdecor
---
src/video/wayland/SDL_waylandevents.c | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/src/video/wayland/SDL_waylandevents.c b/src/video/wayland/SDL_waylandevents.c
index 0d3c19bb9b6..17981db2b7f 100644
--- a/src/video/wayland/SDL_waylandevents.c
+++ b/src/video/wayland/SDL_waylandevents.c
@@ -479,8 +479,12 @@ ProcessHitTest(struct SDL_WaylandInput *input, uint32_t serial)
};
#ifdef HAVE_LIBDECOR_H
- /* ditto for libdecor. */
- const uint32_t *directions_libdecor = directions;
+ static const uint32_t directions_libdecor[] = {
+ LIBDECOR_RESIZE_EDGE_TOP_LEFT, LIBDECOR_RESIZE_EDGE_TOP,
+ LIBDECOR_RESIZE_EDGE_TOP_RIGHT, LIBDECOR_RESIZE_EDGE_RIGHT,
+ LIBDECOR_RESIZE_EDGE_BOTTOM_RIGHT, LIBDECOR_RESIZE_EDGE_BOTTOM,
+ LIBDECOR_RESIZE_EDGE_BOTTOM_LEFT, LIBDECOR_RESIZE_EDGE_LEFT
+ };
#endif
switch (rc) {