Skip to content

Commit

Permalink
[client] wayland: honour fullscreen and maximize in libdecor
Browse files Browse the repository at this point in the history
We never added the functionality when the parameters were passed to
libdecor_shellInit.
  • Loading branch information
quantum5 committed Dec 22, 2023
1 parent f05151c commit 595c70b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions client/displayservers/Wayland/desktops/libdecor/libdecor.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 595c70b

Please sign in to comment.