mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-01 22:58:38 -04:00
xdg-activation-v1: add data field and emit token destroy events
The data field is useful to track metadata about a token. The destroy events are useful for compositors that track application startup to let them know they can stop doing that.
This commit is contained in:
parent
6ad0f819e2
commit
e2aff8a9b0
2 changed files with 11 additions and 0 deletions
|
|
@ -22,6 +22,12 @@ struct wlr_xdg_activation_token_v1 {
|
|||
char *app_id; // can be NULL
|
||||
struct wl_list link; // wlr_xdg_activation_v1.tokens
|
||||
|
||||
void *data;
|
||||
|
||||
struct {
|
||||
struct wl_signal destroy;
|
||||
} events;
|
||||
|
||||
// private state
|
||||
|
||||
char *token;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue