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.
diff --git a/clients/stacking.c b/clients/stacking.c
index 347c598..f51a476 100644
--- a/clients/stacking.c
+++ b/clients/stacking.c
@@ -64,7 +64,7 @@
struct widget *new_widget;
new_window = window_create(stacking->display);
- window_set_transient_for(new_window, parent_window);
+ window_set_parent(new_window, parent_window);
new_widget = window_frame_create(new_window, new_window);
@@ -230,7 +230,7 @@
static void
set_window_background_colour(cairo_t *cr, struct window *window)
{
- if (window_get_transient_for(window))
+ if (window_get_parent(window))
cairo_set_source_rgba(cr, 0.0, 1.0, 0.0, 0.4);
else if (window_is_maximized(window))
cairo_set_source_rgba(cr, 1.0, 1.0, 0.0, 0.6);
@@ -276,7 +276,7 @@
" (n)ew window, (p)opup,\n"
" (q)uit, (t)ransient window\n",
window, window_is_fullscreen(window),
- window_is_maximized(window), window_get_transient_for(window) ? 1 : 0);
+ window_is_maximized(window), window_get_parent(window) ? 1 : 0);
cairo_destroy(cr);
}