efl-wl: add toplevel_added event for adding a new toplevel surface

Summary: Depends on D11443

Reviewers: devilhorns

Reviewed By: devilhorns

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D11444
This commit is contained in:
Mike Blumenkrantz 2020-03-03 13:42:47 -05:00
parent 0fb7acabc2
commit d9560ffcd9
2 changed files with 2 additions and 0 deletions

View File

@ -44,6 +44,7 @@ typedef enum
* Add a compositor widget to the given canvas.
*
* The following smart callbacks will trigger on the compositor object:
* "toplevel_added" - A toplevel surface has been added; event info is Evas_Object *surface @since 1.24
* "child_added" - A toplevel surface with a parent has been added; event info is Evas_Object *surface
* "popup_added" - A popup surface has been added; event info is Evas_Object *surface
* "seat_added" - A compositor seat has been added; event info is Eo *dev

View File

@ -3334,6 +3334,7 @@ shell_surface_toplevel_create(struct wl_client *client EINA_UNUSED, struct wl_re
cs->role = wl_resource_create(client, &xdg_toplevel_interface, 1, id);
wl_resource_set_implementation(cs->role, &shell_surface_toplevel_interface, cs, shell_surface_toplevel_impl_destroy);
cs->shell.new = 1;
evas_object_smart_callback_call(cs->c->obj, "toplevel_added", cs->obj);
}
static void