mirror of
https://github.com/brl/mutter.git
synced 2024-11-26 10:00:45 -05:00
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:
parent
c55f64fdf2
commit
e8447ad9bb
@ -1819,7 +1819,7 @@ void
|
|||||||
meta_wayland_surface_delete (MetaWaylandSurface *surface)
|
meta_wayland_surface_delete (MetaWaylandSurface *surface)
|
||||||
{
|
{
|
||||||
if (surface->xdg_surface.resource)
|
if (surface->xdg_surface.resource)
|
||||||
xdg_surface_send_delete (surface->xdg_surface.resource);
|
xdg_surface_send_close (surface->xdg_surface.resource);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
@ -384,9 +384,9 @@
|
|||||||
</description>
|
</description>
|
||||||
</event>
|
</event>
|
||||||
|
|
||||||
<event name="delete">
|
<event name="close">
|
||||||
<description summary="surface wants to be closed">
|
<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
|
wants the surface to be closed. This should be equivalent to
|
||||||
the user clicking the close button in client-side decorations,
|
the user clicking the close button in client-side decorations,
|
||||||
if your application has any...
|
if your application has any...
|
||||||
|
Loading…
Reference in New Issue
Block a user