mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-25 09:17:12 +01:00
commit after setting/unsetting limits
This commit is contained in:
parent
9984891ba8
commit
f20a85818c
@ -113,6 +113,7 @@ SetFullscreen(SDL_Window *window, struct wl_output *output)
|
||||
if (!(window->flags & SDL_WINDOW_RESIZABLE)) {
|
||||
/* ensure that window is resizable before going into fullscreen */
|
||||
libdecor_frame_set_capabilities(wind->shell_surface.libdecor.frame, LIBDECOR_ACTION_RESIZE);
|
||||
wl_surface_commit(wind->surface);
|
||||
}
|
||||
libdecor_frame_set_fullscreen(wind->shell_surface.libdecor.frame, output);
|
||||
} else {
|
||||
@ -120,6 +121,7 @@ SetFullscreen(SDL_Window *window, struct wl_output *output)
|
||||
if (!(window->flags & SDL_WINDOW_RESIZABLE)) {
|
||||
/* restore previous RESIZE capability */
|
||||
libdecor_frame_unset_capabilities(wind->shell_surface.libdecor.frame, LIBDECOR_ACTION_RESIZE);
|
||||
wl_surface_commit(wind->surface);
|
||||
}
|
||||
}
|
||||
} else
|
||||
|
Loading…
Reference in New Issue
Block a user