wayland: Rename set_transient_for to set_parent
This is also something that we did upstream. Since we want to introduce an explicit "xdg_transient" window type for tooltips and popovers, and since "transient_for" is a confusing dumb 80s term lifted from the ICCCM spec, just rename it.
This commit is contained in:
parent
e8447ad9bb
commit
7c4f4c6f36
@ -707,9 +707,9 @@ xdg_surface_destroy (struct wl_client *client,
|
||||
}
|
||||
|
||||
static void
|
||||
xdg_surface_set_transient_for (struct wl_client *client,
|
||||
struct wl_resource *resource,
|
||||
struct wl_resource *parent_resource)
|
||||
xdg_surface_set_parent (struct wl_client *client,
|
||||
struct wl_resource *resource,
|
||||
struct wl_resource *parent_resource)
|
||||
{
|
||||
MetaWaylandSurface *surface = wl_resource_get_user_data (resource);
|
||||
MetaWindow *transient_for = NULL;
|
||||
@ -905,7 +905,7 @@ xdg_surface_set_minimized (struct wl_client *client,
|
||||
|
||||
static const struct xdg_surface_interface meta_wayland_xdg_surface_interface = {
|
||||
xdg_surface_destroy,
|
||||
xdg_surface_set_transient_for,
|
||||
xdg_surface_set_parent,
|
||||
xdg_surface_set_margin,
|
||||
xdg_surface_set_title,
|
||||
xdg_surface_set_app_id,
|
||||
|
@ -137,11 +137,8 @@
|
||||
</description>
|
||||
</request>
|
||||
|
||||
<request name="set_transient_for">
|
||||
<request name="set_parent">
|
||||
<description summary="surface is a child of another surface">
|
||||
Setting a surface as transient of another means that it is child
|
||||
of another surface.
|
||||
|
||||
Child surfaces are stacked above their parents, and will be
|
||||
unmapped if the parent is unmapped too. They should not appear
|
||||
on task bars and alt+tab.
|
||||
|
Loading…
Reference in New Issue
Block a user