mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-04-15 08:22:07 -04:00
ext-foreign-toplevel-handle-v1: use per-handle version.
the version of the list might not always be the same as the version of the handle, plus ext-foreign-toplevel-request-manager-v1 will need to create handle resources, using it's own resources, whose version might not match the handle as well Signed-off-by: Anna (navi) Figueiredo Gomes <navi@vlhl.dev>
This commit is contained in:
parent
2d5492c737
commit
a9511d0f89
2 changed files with 8 additions and 6 deletions
|
|
@ -32,6 +32,7 @@ struct wlr_ext_foreign_toplevel_handle_v1 {
|
|||
struct wl_list resources; // wl_resource_get_link()
|
||||
struct wl_list link; // wlr_ext_foreign_toplevel_list_v1.toplevels
|
||||
|
||||
uint32_t version;
|
||||
char *title;
|
||||
char *app_id;
|
||||
char *identifier;
|
||||
|
|
@ -62,9 +63,8 @@ struct wlr_ext_foreign_toplevel_handle_v1 *wlr_ext_foreign_toplevel_handle_v1_cr
|
|||
void wlr_ext_foreign_toplevel_handle_v1_destroy(
|
||||
struct wlr_ext_foreign_toplevel_handle_v1 *toplevel);
|
||||
|
||||
void wlr_ext_foreign_toplevel_handle_v1_update_state(
|
||||
struct wlr_ext_foreign_toplevel_handle_v1 *toplevel,
|
||||
const struct wlr_ext_foreign_toplevel_handle_v1_state *state);
|
||||
void wlr_ext_foreign_toplevel_handle_v1_update_state(struct wlr_ext_foreign_toplevel_handle_v1 *toplevel,
|
||||
const struct wlr_ext_foreign_toplevel_handle_v1_state *state, uint32_t version);
|
||||
|
||||
struct wlr_ext_foreign_toplevel_handle_v1 *wlr_ext_foreign_toplevel_handle_v1_from_resource(
|
||||
struct wl_resource *resource);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue