mirror of
https://github.com/brl/mutter.git
synced 2024-11-22 08:00:42 -05:00
wayland-surface: Set popups transient to their parents
This commit is contained in:
parent
461f74ef18
commit
1e211722c7
@ -850,6 +850,7 @@ get_xdg_popup (struct wl_client *client,
|
|||||||
surface->window->rect.x = parent_rect.x + x;
|
surface->window->rect.x = parent_rect.x + x;
|
||||||
surface->window->rect.y = parent_rect.y + y;
|
surface->window->rect.y = parent_rect.y + y;
|
||||||
surface->window->placed = TRUE;
|
surface->window->placed = TRUE;
|
||||||
|
meta_window_set_transient_for (surface->window, parent_surf->window);
|
||||||
|
|
||||||
meta_wayland_pointer_start_popup_grab (&seat->pointer, surface);
|
meta_wayland_pointer_start_popup_grab (&seat->pointer, surface);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user