diff options
author | Mike Blumenkrantz <zmike@samsung.com> | 2020-03-03 13:42:47 -0500 |
---|---|---|
committer | Mike Blumenkrantz <zmike@samsung.com> | 2020-03-03 13:42:47 -0500 |
commit | d9560ffcd96e3e26ba2893d7140e7c982ee7292e (patch) | |
tree | f4b4ad26488b39ee2b2a793e35e8aeed2f26e726 /src/lib/efl_wl | |
parent | 0fb7acabc2b63658e95ddb5bfc0a150530342ba1 (diff) |
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
Diffstat (limited to 'src/lib/efl_wl')
-rw-r--r-- | src/lib/efl_wl/Efl_Wl.h | 1 | ||||
-rw-r--r-- | src/lib/efl_wl/efl_wl.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/efl_wl/Efl_Wl.h b/src/lib/efl_wl/Efl_Wl.h index 3bf4aeea20..a866a4ee13 100644 --- a/src/lib/efl_wl/Efl_Wl.h +++ b/src/lib/efl_wl/Efl_Wl.h | |||
@@ -44,6 +44,7 @@ typedef enum | |||
44 | * Add a compositor widget to the given canvas. | 44 | * Add a compositor widget to the given canvas. |
45 | * | 45 | * |
46 | * The following smart callbacks will trigger on the compositor object: | 46 | * The following smart callbacks will trigger on the compositor object: |
47 | * "toplevel_added" - A toplevel surface has been added; event info is Evas_Object *surface @since 1.24 | ||
47 | * "child_added" - A toplevel surface with a parent has been added; event info is Evas_Object *surface | 48 | * "child_added" - A toplevel surface with a parent has been added; event info is Evas_Object *surface |
48 | * "popup_added" - A popup surface has been added; event info is Evas_Object *surface | 49 | * "popup_added" - A popup surface has been added; event info is Evas_Object *surface |
49 | * "seat_added" - A compositor seat has been added; event info is Eo *dev | 50 | * "seat_added" - A compositor seat has been added; event info is Eo *dev |
diff --git a/src/lib/efl_wl/efl_wl.c b/src/lib/efl_wl/efl_wl.c index 304d9d8dd8..df5cfadee3 100644 --- a/src/lib/efl_wl/efl_wl.c +++ b/src/lib/efl_wl/efl_wl.c | |||
@@ -3334,6 +3334,7 @@ shell_surface_toplevel_create(struct wl_client *client EINA_UNUSED, struct wl_re | |||
3334 | cs->role = wl_resource_create(client, &xdg_toplevel_interface, 1, id); | 3334 | cs->role = wl_resource_create(client, &xdg_toplevel_interface, 1, id); |
3335 | wl_resource_set_implementation(cs->role, &shell_surface_toplevel_interface, cs, shell_surface_toplevel_impl_destroy); | 3335 | wl_resource_set_implementation(cs->role, &shell_surface_toplevel_interface, cs, shell_surface_toplevel_impl_destroy); |
3336 | cs->shell.new = 1; | 3336 | cs->shell.new = 1; |
3337 | evas_object_smart_callback_call(cs->c->obj, "toplevel_added", cs->obj); | ||
3337 | } | 3338 | } |
3338 | 3339 | ||
3339 | static void | 3340 | static void |