Module gtk_layer_shell::functions
source · Functions
When auto exclusive zone is enabled, exclusive zone is automatically set to the
size of the
window + relevant margin. To disable auto exclusive zone, just set the
exclusive zone to 0 or any other fixed value.windowexclusive_zone
v0_5windowSet the
window up to be a layer surface once it is mapped. this must be called before
the window is realized.is_anchor
v0_5windowDeprecated since 0.6
is_layer_window
v0_5windowis_supported
v0_5May block for a Wayland roundtrip the first time it’s called.
keyboard_mode
v0_6windowlayer
v0_5windowmajor_version
v0_4Returns
margin
v0_5windowmicro_version
v0_4Returns
minor_version
v0_4Returns
monitor
v0_5NOTE: To get which monitor the surface is actually on, use
gdk_display_get_monitor_at_window().namespace
v0_5NOTE: this function does not return ownership of the string. Do not free the returned string.
Future calls into the library may invalidate the returned string.
protocol_version
v0_6May block for a Wayland roundtrip the first time it’s called.
Set whether
window should be anchored to edge.Has no effect unless the surface is anchored to an edge. Requests that the compositor
does not place other surfaces within the given exclusive zone of the anchored edge.
For example, a panel can request to not be covered by maximized windows. See
wlr-layer-shell-unstable-v1.xml for details.
Whether the
window should receive keyboard events from the compositor.Sets if/when
window should receive keyboard events from the compositor, see
GtkLayerShellKeyboardMode for details.Set the “layer” on which the surface appears (controls if it is over top of or below other surfaces). The layer may
be changed on-the-fly in the current version of the layer shell protocol, but on compositors that only support an
older version the
window is remapped so the change can take effect.Set the margin for a specific
edge of a window. Effects both surface’s distance from
the edge and its exclusive zone size (if auto exclusive zone enabled).Set the output for the window to be placed on, or
None to let the compositor choose.
If the window is currently mapped, it will get remapped so the change can take effect.Set the “namespace” of the surface.