[client] wayland: honour fullscreen and maximize in libdecor

We never added the functionality when the parameters were passed to
libdecor_shellInit.
This commit is contained in:
Quantum 2023-12-21 21:57:24 -05:00 committed by Geoffrey McRae
parent f05151c9a6
commit 537218d6ae

View file

@ -141,6 +141,12 @@ static bool libdecor_shellInit(
libdecor_frame_set_title(state.libdecorFrame, title);
libdecor_frame_map(state.libdecorFrame);
if (fullscreen)
libdecor_frame_set_fullscreen(state.libdecorFrame, NULL);
if (maximize)
libdecor_frame_set_minimized(state.libdecorFrame);
if (resizable)
libdecor_frame_set_capabilities(state.libdecorFrame,
LIBDECOR_ACTION_RESIZE);