wayland: use libdecor resize edge enums for libdecor

This commit is contained in:
takase1121 2022-06-15 22:01:59 +08:00 committed by Ethan Lee
parent 163f669745
commit f8ae3ef1eb
1 changed files with 6 additions and 2 deletions

View File

@ -479,8 +479,12 @@ ProcessHitTest(struct SDL_WaylandInput *input, uint32_t serial)
}; };
#ifdef HAVE_LIBDECOR_H #ifdef HAVE_LIBDECOR_H
/* ditto for libdecor. */ static const uint32_t directions_libdecor[] = {
const uint32_t *directions_libdecor = directions; 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 #endif
switch (rc) { switch (rc) {