From e4bb3c86496936c1b68141fc4db492426823bbdd Mon Sep 17 00:00:00 2001 From: Ethan Lee Date: Wed, 11 May 2022 18:13:44 -0400 Subject: [PATCH] wayland: Fix build for configs without libdecor --- src/video/wayland/SDL_waylandwindow.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/video/wayland/SDL_waylandwindow.c b/src/video/wayland/SDL_waylandwindow.c index 75ffe6a4b..f5d598c62 100644 --- a/src/video/wayland/SDL_waylandwindow.c +++ b/src/video/wayland/SDL_waylandwindow.c @@ -1906,9 +1906,12 @@ int Wayland_CreateWindow(_THIS, SDL_Window *window) #define IS_POPUP(window) \ (window->flags & (SDL_WINDOW_TOOLTIP | SDL_WINDOW_POPUP_MENU)) +#ifdef HAVE_LIBDECOR_H if (c->shell.libdecor && !IS_POPUP(window)) { data->shell_surface_type = WAYLAND_SURFACE_LIBDECOR; - } else if (c->shell.xdg) { + } else +#endif + if (c->shell.xdg) { if (IS_POPUP(window)) { data->shell_surface_type = WAYLAND_SURFACE_XDG_POPUP; } else {