mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-02 09:01:38 -05:00
xdg-activation-v1: enable compositors to request their own tokens
These new functions allow a compositor to request new managed tokens without participating in the xdg-activation procedure as a wayland client. This enables the compositor itself to behave as a launcher application.
This commit is contained in:
parent
83090de034
commit
6ad0f819e2
2 changed files with 102 additions and 33 deletions
|
|
@ -44,6 +44,8 @@ struct wlr_xdg_activation_v1 {
|
|||
|
||||
// private state
|
||||
|
||||
struct wl_display *display;
|
||||
|
||||
struct wl_global *global;
|
||||
|
||||
struct wl_listener display_destroy;
|
||||
|
|
@ -60,4 +62,17 @@ struct wlr_xdg_activation_v1_request_activate_event {
|
|||
struct wlr_xdg_activation_v1 *wlr_xdg_activation_v1_create(
|
||||
struct wl_display *display);
|
||||
|
||||
struct wlr_xdg_activation_token_v1 *wlr_xdg_activation_token_v1_create(
|
||||
struct wlr_xdg_activation_v1 *activation);
|
||||
|
||||
void wlr_xdg_activation_token_v1_destroy(
|
||||
struct wlr_xdg_activation_token_v1 *token);
|
||||
|
||||
struct wlr_xdg_activation_token_v1 *wlr_xdg_activation_v1_find_token(
|
||||
struct wlr_xdg_activation_v1 *activation, const char *token_str);
|
||||
|
||||
// Get a string suitable for exporting to launched clients
|
||||
const char *wlr_xdg_activation_token_v1_get_name(
|
||||
struct wlr_xdg_activation_token_v1 *token);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue