From 5dad69675b197a11cea01c463a64ff16ca52edfd Mon Sep 17 00:00:00 2001 From: Quantum Date: Tue, 26 Jan 2021 23:44:57 -0500 Subject: [PATCH] [client] wayland: respect request to maximize window Request the compositor to maximize the window if win:maximize=yes. --- client/displayservers/Wayland/wayland.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/client/displayservers/Wayland/wayland.c b/client/displayservers/Wayland/wayland.c index c96f1d04..c59499a1 100644 --- a/client/displayservers/Wayland/wayland.c +++ b/client/displayservers/Wayland/wayland.c @@ -523,6 +523,9 @@ static bool waylandInit(const LG_DSInitParams params) if (params.fullscreen) xdg_toplevel_set_fullscreen(wm.xdgToplevel, NULL); + if (params.maximize) + xdg_toplevel_set_maximized(wm.xdgToplevel); + wl_surface_commit(wm.surface); struct wl_buffer * cursorBuffer = createCursorBuffer();