Blame uwac/protocols/fullscreen-shell-unstable-v1.xml

Packit Service 5a9772
Packit Service 5a9772
<protocol name="fullscreen_shell_unstable_v1">
Packit Service 5a9772
Packit Service 5a9772
  <interface name="zwp_fullscreen_shell_v1" version="1">
Packit Service 5a9772
    <description summary="displays a single surface per output">
Packit Service 5a9772
      Displays a single surface per output.
Packit Service 5a9772
Packit Service 5a9772
      This interface provides a mechanism for a single client to display
Packit Service 5a9772
      simple full-screen surfaces.  While there technically may be multiple
Packit Service 5a9772
      clients bound to this interface, only one of those clients should be
Packit Service 5a9772
      shown at a time.
Packit Service 5a9772
Packit Service 5a9772
      To present a surface, the client uses either the present_surface or
Packit Service 5a9772
      present_surface_for_mode requests.  Presenting a surface takes effect
Packit Service 5a9772
      on the next wl_surface.commit.  See the individual requests for
Packit Service 5a9772
      details about scaling and mode switches.
Packit Service 5a9772
Packit Service 5a9772
      The client can have at most one surface per output at any time.
Packit Service 5a9772
      Requesting a surface to be presented on an output that already has a
Packit Service 5a9772
      surface replaces the previously presented surface.  Presenting a null
Packit Service 5a9772
      surface removes its content and effectively disables the output.
Packit Service 5a9772
      Exactly what happens when an output is "disabled" is
Packit Service 5a9772
      compositor-specific.  The same surface may be presented on multiple
Packit Service 5a9772
      outputs simultaneously.
Packit Service 5a9772
Packit Service 5a9772
      Once a surface is presented on an output, it stays on that output
Packit Service 5a9772
      until either the client removes it or the compositor destroys the
Packit Service 5a9772
      output.  This way, the client can update the output's contents by
Packit Service 5a9772
      simply attaching a new buffer.
Packit Service 5a9772
Packit Service 5a9772
      Warning! The protocol described in this file is experimental and
Packit Service 5a9772
      backward incompatible changes may be made. Backward compatible changes
Packit Service 5a9772
      may be added together with the corresponding interface version bump.
Packit Service 5a9772
      Backward incompatible changes are done by bumping the version number in
Packit Service 5a9772
      the protocol and interface names and resetting the interface version.
Packit Service 5a9772
      Once the protocol is to be declared stable, the 'z' prefix and the
Packit Service 5a9772
      version number in the protocol and interface names are removed and the
Packit Service 5a9772
      interface version number is reset.
Packit Service 5a9772
    </description>
Packit Service 5a9772
Packit Service 5a9772
    <request name="release" type="destructor">
Packit Service 5a9772
      <description summary="release the wl_fullscreen_shell interface">
Packit Service 5a9772
	Release the binding from the wl_fullscreen_shell interface.
Packit Service 5a9772
Packit Service 5a9772
	This destroys the server-side object and frees this binding.  If
Packit Service 5a9772
	the client binds to wl_fullscreen_shell multiple times, it may wish
Packit Service 5a9772
	to free some of those bindings.
Packit Service 5a9772
      </description>
Packit Service 5a9772
    </request>
Packit Service 5a9772
Packit Service 5a9772
    <enum name="capability">
Packit Service 5a9772
      <description summary="capabilities advertised by the compositor">
Packit Service 5a9772
	Various capabilities that can be advertised by the compositor.  They
Packit Service 5a9772
	are advertised one-at-a-time when the wl_fullscreen_shell interface is
Packit Service 5a9772
	bound.  See the wl_fullscreen_shell.capability event for more details.
Packit Service 5a9772
Packit Service 5a9772
	ARBITRARY_MODES:
Packit Service 5a9772
	This is a hint to the client that indicates that the compositor is
Packit Service 5a9772
	capable of setting practically any mode on its outputs.  If this
Packit Service 5a9772
	capability is provided, wl_fullscreen_shell.present_surface_for_mode
Packit Service 5a9772
	will almost never fail and clients should feel free to set whatever
Packit Service 5a9772
	mode they like.  If the compositor does not advertise this, it may
Packit Service 5a9772
	still support some modes that are not advertised through wl_global.mode
Packit Service 5a9772
	but it is less likely.
Packit Service 5a9772
Packit Service 5a9772
	CURSOR_PLANE:
Packit Service 5a9772
	This is a hint to the client that indicates that the compositor can
Packit Service 5a9772
	handle a cursor surface from the client without actually compositing.
Packit Service 5a9772
	This may be because of a hardware cursor plane or some other mechanism.
Packit Service 5a9772
	If the compositor does not advertise this capability then setting
Packit Service 5a9772
	wl_pointer.cursor may degrade performance or be ignored entirely.  If
Packit Service 5a9772
	CURSOR_PLANE is not advertised, it is recommended that the client draw
Packit Service 5a9772
	its own cursor and set wl_pointer.cursor(NULL).
Packit Service 5a9772
      </description>
Packit Service 5a9772
      <entry name="arbitrary_modes" value="1" summary="compositor is capable of almost any output mode"/>
Packit Service 5a9772
      <entry name="cursor_plane" value="2" summary="compositor has a separate cursor plane"/>
Packit Service 5a9772
    </enum>
Packit Service 5a9772
Packit Service 5a9772
    <event name="capability">
Packit Service 5a9772
      <description summary="advertises a capability of the compositor">
Packit Service 5a9772
	Advertises a single capability of the compositor.
Packit Service 5a9772
Packit Service 5a9772
	When the wl_fullscreen_shell interface is bound, this event is emitted
Packit Service 5a9772
	once for each capability advertised.  Valid capabilities are given by
Packit Service 5a9772
	the wl_fullscreen_shell.capability enum.  If clients want to take
Packit Service 5a9772
	advantage of any of these capabilities, they should use a
Packit Service 5a9772
	wl_display.sync request immediately after binding to ensure that they
Packit Service 5a9772
	receive all the capability events.
Packit Service 5a9772
      </description>
Packit Service 5a9772
      <arg name="capability" type="uint"/>
Packit Service 5a9772
    </event>
Packit Service 5a9772
Packit Service 5a9772
    <enum name="present_method">
Packit Service 5a9772
      <description summary="different method to set the surface fullscreen">
Packit Service 5a9772
	Hints to indicate to the compositor how to deal with a conflict
Packit Service 5a9772
	between the dimensions of the surface and the dimensions of the
Packit Service 5a9772
	output. The compositor is free to ignore this parameter.
Packit Service 5a9772
      </description>
Packit Service 5a9772
      <entry name="default" value="0" summary="no preference, apply default policy"/>
Packit Service 5a9772
      <entry name="center" value="1" summary="center the surface on the output"/>
Packit Service 5a9772
      <entry name="zoom" value="2" summary="scale the surface, preserving aspect ratio, to the largest size that will fit on the output" />
Packit Service 5a9772
      <entry name="zoom_crop" value="3" summary="scale the surface, preserving aspect ratio, to fully fill the output cropping if needed" />
Packit Service 5a9772
      <entry name="stretch" value="4" summary="scale the surface to the size of the output ignoring aspect ratio" />
Packit Service 5a9772
    </enum>
Packit Service 5a9772
Packit Service 5a9772
    <request name="present_surface">
Packit Service 5a9772
      <description summary="present surface for display">
Packit Service 5a9772
	Present a surface on the given output.
Packit Service 5a9772
Packit Service 5a9772
	If the output is null, the compositor will present the surface on
Packit Service 5a9772
	whatever display (or displays) it thinks best.  In particular, this
Packit Service 5a9772
	may replace any or all surfaces currently presented so it should
Packit Service 5a9772
	not be used in combination with placing surfaces on specific
Packit Service 5a9772
	outputs.
Packit Service 5a9772
Packit Service 5a9772
	The method parameter is a hint to the compositor for how the surface
Packit Service 5a9772
	is to be presented.  In particular, it tells the compositor how to
Packit Service 5a9772
	handle a size mismatch between the presented surface and the
Packit Service 5a9772
	output.  The compositor is free to ignore this parameter.
Packit Service 5a9772
Packit Service 5a9772
	The "zoom", "zoom_crop", and "stretch" methods imply a scaling
Packit Service 5a9772
	operation on the surface.  This will override any kind of output
Packit Service 5a9772
	scaling, so the buffer_scale property of the surface is effectively
Packit Service 5a9772
	ignored.
Packit Service 5a9772
      </description>
Packit Service 5a9772
      <arg name="surface" type="object" interface="wl_surface" allow-null="true"/>
Packit Service 5a9772
      <arg name="method" type="uint"/>
Packit Service 5a9772
      <arg name="output" type="object" interface="wl_output" allow-null="true"/>
Packit Service 5a9772
    </request>
Packit Service 5a9772
Packit Service 5a9772
    <request name="present_surface_for_mode">
Packit Service 5a9772
      <description summary="present surface for display at a particular mode">
Packit Service 5a9772
	Presents a surface on the given output for a particular mode.
Packit Service 5a9772
Packit Service 5a9772
	If the current size of the output differs from that of the surface,
Packit Service 5a9772
	the compositor will attempt to change the size of the output to
Packit Service 5a9772
	match the surface.  The result of the mode-switch operation will be
Packit Service 5a9772
	returned via the provided wl_fullscreen_shell_mode_feedback object.
Packit Service 5a9772
Packit Service 5a9772
	If the current output mode matches the one requested or if the
Packit Service 5a9772
	compositor successfully switches the mode to match the surface,
Packit Service 5a9772
	then the mode_successful event will be sent and the output will
Packit Service 5a9772
	contain the contents of the given surface.  If the compositor
Packit Service 5a9772
	cannot match the output size to the surface size, the mode_failed
Packit Service 5a9772
	will be sent and the output will contain the contents of the
Packit Service 5a9772
	previously presented surface (if any).  If another surface is
Packit Service 5a9772
	presented on the given output before either of these has a chance
Packit Service 5a9772
	to happen, the present_cancelled event will be sent.
Packit Service 5a9772
Packit Service 5a9772
	Due to race conditions and other issues unknown to the client, no
Packit Service 5a9772
	mode-switch operation is guaranteed to succeed.  However, if the
Packit Service 5a9772
	mode is one advertised by wl_output.mode or if the compositor
Packit Service 5a9772
	advertises the ARBITRARY_MODES capability, then the client should
Packit Service 5a9772
	expect that the mode-switch operation will usually succeed.
Packit Service 5a9772
Packit Service 5a9772
	If the size of the presented surface changes, the resulting output
Packit Service 5a9772
	is undefined.  The compositor may attempt to change the output mode
Packit Service 5a9772
	to compensate.  However, there is no guarantee that a suitable mode
Packit Service 5a9772
	will be found and the client has no way to be notified of success
Packit Service 5a9772
	or failure.
Packit Service 5a9772
Packit Service 5a9772
	The framerate parameter specifies the desired framerate for the
Packit Service 5a9772
	output in mHz.  The compositor is free to ignore this parameter.  A
Packit Service 5a9772
	value of 0 indicates that the client has no preference.
Packit Service 5a9772
Packit Service 5a9772
	If the value of wl_output.scale differs from wl_surface.buffer_scale,
Packit Service 5a9772
	then the compositor may choose a mode that matches either the buffer
Packit Service 5a9772
	size or the surface size.  In either case, the surface will fill the
Packit Service 5a9772
	output.
Packit Service 5a9772
      </description>
Packit Service 5a9772
      <arg name="surface" type="object" interface="wl_surface"/>
Packit Service 5a9772
      <arg name="output" type="object" interface="wl_output"/>
Packit Service 5a9772
      <arg name="framerate" type="int"/>
Packit Service 5a9772
      <arg name="feedback" type="new_id" interface="zwp_fullscreen_shell_mode_feedback_v1"/>
Packit Service 5a9772
    </request>
Packit Service 5a9772
Packit Service 5a9772
    <enum name="error">
Packit Service 5a9772
      <description summary="wl_fullscreen_shell error values">
Packit Service 5a9772
	These errors can be emitted in response to wl_fullscreen_shell requests.
Packit Service 5a9772
      </description>
Packit Service 5a9772
      <entry name="invalid_method" value="0" summary="present_method is not known"/>
Packit Service 5a9772
    </enum>
Packit Service 5a9772
  </interface>
Packit Service 5a9772
Packit Service 5a9772
  <interface name="zwp_fullscreen_shell_mode_feedback_v1" version="1">
Packit Service 5a9772
    <event name="mode_successful">
Packit Service 5a9772
      <description summary="mode switch succeeded">
Packit Service 5a9772
	This event indicates that the attempted mode switch operation was
Packit Service 5a9772
	successful.  A surface of the size requested in the mode switch
Packit Service 5a9772
	will fill the output without scaling.
Packit Service 5a9772
Packit Service 5a9772
	Upon receiving this event, the client should destroy the
Packit Service 5a9772
	wl_fullscreen_shell_mode_feedback object.
Packit Service 5a9772
      </description>
Packit Service 5a9772
    </event>
Packit Service 5a9772
Packit Service 5a9772
    <event name="mode_failed">
Packit Service 5a9772
      <description summary="mode switch failed">
Packit Service 5a9772
	This event indicates that the attempted mode switch operation
Packit Service 5a9772
	failed.  This may be because the requested output mode is not
Packit Service 5a9772
	possible or it may mean that the compositor does not want to allow it.
Packit Service 5a9772
Packit Service 5a9772
	Upon receiving this event, the client should destroy the
Packit Service 5a9772
	wl_fullscreen_shell_mode_feedback object.
Packit Service 5a9772
      </description>
Packit Service 5a9772
    </event>
Packit Service 5a9772
Packit Service 5a9772
    <event name="present_cancelled">
Packit Service 5a9772
      <description summary="mode switch cancelled">
Packit Service 5a9772
	This event indicates that the attempted mode switch operation was
Packit Service 5a9772
	cancelled.  Most likely this is because the client requested a
Packit Service 5a9772
	second mode switch before the first one completed.
Packit Service 5a9772
Packit Service 5a9772
	Upon receiving this event, the client should destroy the
Packit Service 5a9772
	wl_fullscreen_shell_mode_feedback object.
Packit Service 5a9772
      </description>
Packit Service 5a9772
    </event>
Packit Service 5a9772
  </interface>
Packit Service 5a9772
Packit Service 5a9772
</protocol>