diff options
author | Jasper St. Pierre <jstpierre@mecheye.net> | 2014-04-10 18:37:54 -0700 |
---|---|---|
committer | Jasper St. Pierre <jstpierre@mecheye.net> | 2014-05-13 00:35:30 -0400 |
commit | c815d62b8516044cc98b93e6f03e9123b20190a6 (patch) | |
tree | 0858dfc1304f0491ac2399ba4ab0f3089f2da8f5 /desktop-shell | |
parent | 11f1433e0aa20d778174e06a83e20fe98266b016 (diff) | |
download | weston-c815d62b8516044cc98b93e6f03e9123b20190a6.tar.gz |
xdg-shell: Rename set_transient_for to set_parent
It's a confusing name that comes from the ICCCM. The ICCCM is best
forgotten about.
With the addition of the potential new "transient" role meaning a
parent-relative toplevel like a long-lived popup, used for e.g.
tooltips, the set_transient_for name will become even more confusing.
Diffstat (limited to 'desktop-shell')
-rw-r--r-- | desktop-shell/shell.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/desktop-shell/shell.c b/desktop-shell/shell.c index 84f5c838..ea0e049d 100644 --- a/desktop-shell/shell.c +++ b/desktop-shell/shell.c @@ -3354,9 +3354,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) { struct shell_surface *shsurf = wl_resource_get_user_data(resource); struct weston_surface *parent; @@ -3515,7 +3515,7 @@ xdg_surface_set_minimized(struct wl_client *client, static const struct xdg_surface_interface xdg_surface_implementation = { 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, |