mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-12-14 08:56:26 -05:00
Fix popup positioning & double popups
This commit is contained in:
parent
52baf3dd8a
commit
941f88ce23
2 changed files with 32 additions and 8 deletions
|
|
@ -175,8 +175,7 @@ static void create_popup() {
|
|||
xdg_positioner_set_size(xdg_positioner, 256, 256);
|
||||
xdg_positioner_set_offset(xdg_positioner, 0, 0);
|
||||
xdg_positioner_set_anchor_rect(xdg_positioner, cur_x, cur_y, 1, 1);
|
||||
xdg_positioner_set_anchor(xdg_positioner, XDG_POSITIONER_ANCHOR_TOP_LEFT);
|
||||
xdg_positioner_set_gravity(xdg_positioner, XDG_POSITIONER_GRAVITY_TOP_LEFT);
|
||||
xdg_positioner_set_anchor(xdg_positioner, XDG_POSITIONER_ANCHOR_BOTTOM_RIGHT);
|
||||
|
||||
popup = xdg_surface_get_popup(xdg_surface, NULL, xdg_positioner);
|
||||
assert(popup);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue