shell: Take a wl_surface as parent for transient and popup windows

This commit is contained in:
Kristian Høgsberg
2012-06-27 10:22:58 -04:00
parent 0636ac307e
commit 8150b190d6
4 changed files with 12 additions and 14 deletions
+2 -2
View File
@@ -3009,7 +3009,7 @@ window_create_transient(struct display *display, struct window *parent,
if (display->shell)
wl_shell_surface_set_transient(window->shell_surface,
window->parent->shell_surface,
window->parent->surface,
window->x, window->y, flags);
return window;
@@ -3155,7 +3155,7 @@ window_show_menu(struct display *display,
input_ungrab(input);
wl_shell_surface_set_popup(window->shell_surface, input->seat,
display_get_serial(window->display),
window->parent->shell_surface,
window->parent->surface,
window->x, window->y, 0);
widget_set_redraw_handler(menu->widget, menu_redraw_handler);