Interface
xdg_activation_v1
— interface for activating surfaces
A global interface used for informing the compositor about applications being activated or started, or for applications to request to be activated.
Request
xdg_activation_v1.destroy
— destroy the xdg_activation object
Notify the compositor that the xdg_activation object will no longer be used.
The child objects created via this interface are unaffected and should be destroyed separately.
Request
xdg_activation_v1.get_activation_token
— requests a token
Creates an xdg_activation_token_v1 object that will provide the initiating client with a unique token for this activation. This token should be offered to the clients to be activated.
-
id
new_id<xdg_activation_token_v1>
: None
Request
xdg_activation_v1.activate
— notify new interaction being available
Requests surface activation. It's up to the compositor to display this information as desired, for example by placing the surface above the rest.
The compositor may know who requested this by checking the activation token and might decide not to follow through with the activation if it's considered unwanted.
Compositors can ignore unknown activation tokens when an invalid token is passed.
-
token
string
: the activation token of the initiating client -
surface
object<wl_surface>
: the wl_surface to activate
Interface
xdg_activation_token_v1
— an exported activation handle
An object for setting up a token and receiving a token handle that can be passed as an activation token to another client.
The object is created using the xdg_activation_v1.get_activation_token request. This object should then be populated with the app_id, surface and serial information and committed. The compositor shall then issue a done event with the token. In case the request's parameters are invalid, the compositor will provide an invalid token.
Request
xdg_activation_token_v1.set_serial
— specifies the seat and serial of the activating event
Provides information about the seat and serial event that requested the token.
The serial can come from an input or focus event. For instance, if a click triggers the launch of a third-party client, the launcher client should send a set_serial request with the serial and seat from the wl_pointer.button event.
Some compositors might refuse to activate toplevels when the token doesn't have a valid and recent enough event serial.
Must be sent before commit. This information is optional.
-
serial
uint
: the serial of the event that triggered the activation -
seat
object<wl_seat>
: the wl_seat of the event
Request
xdg_activation_token_v1.set_app_id
— specifies the application being activated
The requesting client can specify an app_id to associate the token being created with it.
Must be sent before commit. This information is optional.
-
app_id
string
: the application id of the client being activated.
Request
xdg_activation_token_v1.set_surface
— specifies the surface requesting activation
This request sets the surface requesting the activation. Note, this is different from the surface that will be activated.
Some compositors might refuse to activate toplevels when the token doesn't have a requesting surface.
Must be sent before commit. This information is optional.
-
surface
object<wl_surface>
: the requesting surface
Request
xdg_activation_token_v1.commit
— issues the token request
Requests an activation token based on the different parameters that have been offered through set_serial, set_surface and set_app_id.
Request
xdg_activation_token_v1.destroy
— destroy the xdg_activation_token_v1 object
Notify the compositor that the xdg_activation_token_v1 object will no longer be used.
Event
xdg_activation_token_v1.done
— the exported activation token
The 'done' event contains the unique token of this activation request and notifies that the provider is done.
-
token
string
: the exported activation token
Enum
xdg_activation_token_v1.error
-
already_used
: The token has already been used previously