From 537218d6ae2e9897170e1f22ef6f27044e4c66e2 Mon Sep 17 00:00:00 2001 From: Quantum Date: Thu, 21 Dec 2023 21:57:24 -0500 Subject: [PATCH] [client] wayland: honour fullscreen and maximize in libdecor We never added the functionality when the parameters were passed to libdecor_shellInit. --- client/displayservers/Wayland/desktops/libdecor/libdecor.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/client/displayservers/Wayland/desktops/libdecor/libdecor.c b/client/displayservers/Wayland/desktops/libdecor/libdecor.c index 1c26f45a..1e9d2146 100644 --- a/client/displayservers/Wayland/desktops/libdecor/libdecor.c +++ b/client/displayservers/Wayland/desktops/libdecor/libdecor.c @@ -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);