[client] wayland: respect request to maximize window

Request the compositor to maximize the window if win:maximize=yes.
This commit is contained in:
Quantum authored and Geoffrey McRae committed 2021-02-21 10:31:48 +11:00
1 parent d0d1b31c10
commit 5dad69675b
1 file changed
+3
+3
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();