wayland-surface: Correct xdg_popup placement
Now that we call set_custom_frame_extents, the frame rect corresponds to the "visible window geometry" used for constrainment, while the x/y fields in get_xdg_popup instead are relative to the surface.
This commit is contained in:
parent
4c621cc30f
commit
47f4c9db7b
@ -1020,7 +1020,7 @@ xdg_shell_get_xdg_popup (struct wl_client *client,
|
|||||||
if (parent_surf == NULL || parent_surf->window == NULL)
|
if (parent_surf == NULL || parent_surf->window == NULL)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
meta_window_get_frame_rect (parent_surf->window, &parent_rect);
|
meta_window_get_rect (parent_surf->window, &parent_rect);
|
||||||
|
|
||||||
if (!create_surface_extension (&surface->xdg_popup, client, surface_resource, resource, id,
|
if (!create_surface_extension (&surface->xdg_popup, client, surface_resource, resource, id,
|
||||||
META_XDG_POPUP_VERSION,
|
META_XDG_POPUP_VERSION,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user