diff options
Diffstat (limited to 'clients/stacking.c')
-rw-r--r-- | clients/stacking.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/clients/stacking.c b/clients/stacking.c index 347c598d..ea6101d5 100644 --- a/clients/stacking.c +++ b/clients/stacking.c @@ -64,7 +64,7 @@ new_window(struct stacking *stacking, struct window *parent_window) 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); @@ -82,7 +82,7 @@ new_window(struct stacking *stacking, struct window *parent_window) } static void -show_popup_cb(struct window *window, struct input *input, int index, void *data) +show_popup_cb(void *data, struct input *input, int index) { /* Ignore the selected menu item. */ } @@ -230,7 +230,7 @@ draw_string(cairo_t *cr, 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 @@ redraw_handler(struct widget *widget, void *data) " (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); } @@ -304,5 +304,8 @@ main(int argc, char *argv[]) display_run(stacking.display); + window_destroy(stacking.root_window); + display_destroy(stacking.display); + return 0; } |