[][src]Function wayland_raw_protocol_bindings::client::xdg_shell_unstable_v5::xdg_surface::xdg_surface_set_maximized

pub unsafe fn xdg_surface_set_maximized(xdg_surface: *mut xdg_surface)

maximize the window

Maximize the surface.

After requesting that the surface should be maximized, the compositor will respond by emitting a configure event with the "maximized" state and the required window geometry. The client should then update its content, drawing it in a maximized state, i.e. without shadow or other decoration outside of the window geometry. The client must also acknowledge the configure when committing the new content (see ack_configure).

It is up to the compositor to decide how and where to maximize the surface, for example which output and what region of the screen should be used.

If the surface was already maximized, the compositor will still emit a configure event with the "maximized" state.