wayland: Rename the delete event to the close event

This was changed upstream a little while ago for C++ compatibility.

It's also the more common term for the operation: you close a window,
you don't delete one. In fact, a delete event might seem like it
would be about resource management instead.
This commit is contained in:
Jasper St. Pierre 2014-04-11 22:55:20 -07:00
parent c55f64fdf2
commit e8447ad9bb
2 changed files with 3 additions and 3 deletions

View File

@ -1819,7 +1819,7 @@ void
meta_wayland_surface_delete (MetaWaylandSurface *surface)
{
if (surface->xdg_surface.resource)
xdg_surface_send_delete (surface->xdg_surface.resource);
xdg_surface_send_close (surface->xdg_surface.resource);
}
void

View File

@ -384,9 +384,9 @@
</description>
</event>
<event name="delete">
<event name="close">
<description summary="surface wants to be closed">
The delete event is sent by the compositor when the user
The close event is sent by the compositor when the user
wants the surface to be closed. This should be equivalent to
the user clicking the close button in client-side decorations,
if your application has any...