mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2024-11-25 00:22:25 +00:00
ext-foreign-toplevel-list: add _from_resource()
This commit is contained in:
parent
3da6fac1f2
commit
ab118042ea
@ -64,4 +64,7 @@ void wlr_ext_foreign_toplevel_handle_v1_update_state(
|
|||||||
struct wlr_ext_foreign_toplevel_handle_v1 *toplevel,
|
struct wlr_ext_foreign_toplevel_handle_v1 *toplevel,
|
||||||
const struct wlr_ext_foreign_toplevel_handle_v1_state *state);
|
const struct wlr_ext_foreign_toplevel_handle_v1_state *state);
|
||||||
|
|
||||||
|
struct wlr_ext_foreign_toplevel_handle_v1 *wlr_ext_foreign_toplevel_handle_v1_from_resource(
|
||||||
|
struct wl_resource *resource);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -54,6 +54,13 @@ static bool update_string(struct wlr_ext_foreign_toplevel_handle_v1 *toplevel,
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
struct wlr_ext_foreign_toplevel_handle_v1 *wlr_ext_foreign_toplevel_handle_v1_from_resource(
|
||||||
|
struct wl_resource *resource) {
|
||||||
|
assert(wl_resource_instance_of(resource, &ext_foreign_toplevel_handle_v1_interface,
|
||||||
|
&toplevel_handle_impl));
|
||||||
|
return wl_resource_get_user_data(resource);
|
||||||
|
}
|
||||||
|
|
||||||
void wlr_ext_foreign_toplevel_handle_v1_update_state(
|
void wlr_ext_foreign_toplevel_handle_v1_update_state(
|
||||||
struct wlr_ext_foreign_toplevel_handle_v1 *toplevel,
|
struct wlr_ext_foreign_toplevel_handle_v1 *toplevel,
|
||||||
const struct wlr_ext_foreign_toplevel_handle_v1_state *state) {
|
const struct wlr_ext_foreign_toplevel_handle_v1_state *state) {
|
||||||
|
Loading…
Reference in New Issue
Block a user