[client] wayland: respect request to maximize window

Request the compositor to maximize the window if win:maximize=yes.
This commit is contained in:
Quantum 2021-01-26 23:44:57 -05:00 committed by Geoffrey McRae
parent d0d1b31c10
commit 5dad69675b

View File

@ -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();