mirror of
https://github.com/shadps4-emu/ext-SDL.git
synced 2025-02-17 09:18:41 +00:00
wayland: Fix build for configs without libdecor
This commit is contained in:
parent
6222bd3143
commit
e4bb3c8649
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user