xdg-popup: use current/pending state pattern

This commit is contained in:
Kirill Primak 2022-04-13 20:22:14 +03:00 committed by Simon Ser
parent 4a968576e4
commit 6f1fce9cb4
5 changed files with 31 additions and 26 deletions

View file

@ -60,7 +60,7 @@ static void scene_xdg_surface_update_position(
if (xdg_surface->role == WLR_XDG_SURFACE_ROLE_POPUP) {
struct wlr_xdg_popup *popup = xdg_surface->popup;
wlr_scene_node_set_position(&scene_xdg_surface->tree->node,
popup->geometry.x, popup->geometry.y);
popup->current.geometry.x, popup->current.geometry.y);
}
}