wayland: implement toggling decorations

This commit is contained in:
Christian Rauch
2021-05-19 00:13:39 +01:00
committed by Sam Lantinga
parent 2b3cf36fd9
commit ee062c644a
3 changed files with 7 additions and 1 deletions

View File

@@ -1234,7 +1234,9 @@ Wayland_SetWindowBordered(_THIS, SDL_Window * window, SDL_bool bordered)
const SDL_VideoData *viddata = (const SDL_VideoData *) _this->driverdata;
#ifdef HAVE_LIBDECOR_H
if (viddata->shell.libdecor) {
SDL_SetError("FIXME libdecor: Implement toggling decorations");
if (wind->shell_surface.libdecor.frame) {
libdecor_frame_set_visibility(wind->shell_surface.libdecor.frame, bordered);
}
} else
#endif
if ((viddata->decoration_manager) && (wind->server_decoration)) {