[mutter/wayland] wayland-surface: Set popups transient to their parents



commit 1e211722c7897b50c84a7c870603ab4d77c3cffd
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Tue Dec 3 10:53:48 2013 -0500

    wayland-surface: Set popups transient to their parents

 src/wayland/meta-wayland-surface.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/wayland/meta-wayland-surface.c b/src/wayland/meta-wayland-surface.c
index 81b45fb..d8822cc 100644
--- a/src/wayland/meta-wayland-surface.c
+++ b/src/wayland/meta-wayland-surface.c
@@ -850,6 +850,7 @@ get_xdg_popup (struct wl_client *client,
   surface->window->rect.x = parent_rect.x + x;
   surface->window->rect.y = parent_rect.y + y;
   surface->window->placed = TRUE;
+  meta_window_set_transient_for (surface->window, parent_surf->window);
 
   meta_wayland_pointer_start_popup_grab (&seat->pointer, surface);
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]