It's actually supposed to emit new_surface signal on wl_surface.commit()
of xdg_toplevel_v6.
However, the tizen application doesn't follow this rule for historical
reason, and this patch makes new_surface signal be emitted on creation
of toplevel to make tizen applications work properly.
Change-Id: I5dc7f8104935ac1ad67b235afca384dbf8eb7414
break;
}
- if (!surface->added) {
- surface->added = true;
- wl_signal_emit_mutable(&surface->client->shell->events.new_surface, surface);
- }
-
if (surface->configured &&
ds_surface_has_buffer(surface->ds_surface) &&
!surface->mapped) {
surface = wl_resource_get_user_data(resource);
create_xdg_toplevel_v6(surface, id);
+
+ surface->added = true;
+ wl_signal_emit_mutable(&surface->client->shell->events.new_surface, surface);
}
static void