mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-24 06:59:45 -05:00
xdg-toplevel-v6 set parent
This commit is contained in:
parent
2573c429ee
commit
5b9373a791
2 changed files with 9 additions and 1 deletions
|
|
@ -21,7 +21,14 @@ static void resource_destroy(struct wl_client *client,
|
|||
|
||||
static void xdg_toplevel_protocol_set_parent(struct wl_client *client,
|
||||
struct wl_resource *resource, struct wl_resource *parent_resource) {
|
||||
wlr_log(L_DEBUG, "TODO: toplevel set parent");
|
||||
struct wlr_xdg_surface_v6 *surface = wl_resource_get_user_data(resource);
|
||||
struct wlr_xdg_surface_v6 *parent = NULL;
|
||||
|
||||
if (parent_resource != NULL) {
|
||||
parent = wl_resource_get_user_data(parent_resource);
|
||||
}
|
||||
|
||||
surface->toplevel_state->parent = parent;
|
||||
}
|
||||
|
||||
static void xdg_toplevel_protocol_set_title(struct wl_client *client,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue