mirror of
https://github.com/labwc/labwc.git
synced 2025-11-02 09:01:47 -05:00
xdg: set node position on commit and configure
To avoid incorrect view position, for example on initial placement.
This commit is contained in:
parent
a601615866
commit
7a708a0dc9
1 changed files with 3 additions and 2 deletions
|
|
@ -58,9 +58,8 @@ handle_commit(struct wl_listener *listener, void *data)
|
|||
if (serial == view->xdg_surface->current.configure_serial) {
|
||||
view->pending_move_resize.configure_serial = 0;
|
||||
}
|
||||
wlr_scene_node_set_position(&view->scene_tree->node,
|
||||
view->x, view->y);
|
||||
}
|
||||
wlr_scene_node_set_position(&view->scene_tree->node, view->x, view->y);
|
||||
ssd_update_geometry(view);
|
||||
}
|
||||
|
||||
|
|
@ -189,6 +188,8 @@ xdg_toplevel_view_configure(struct view *view, struct wlr_box geo)
|
|||
} else if (view->pending_move_resize.configure_serial == 0) {
|
||||
view->x = geo.x;
|
||||
view->y = geo.y;
|
||||
wlr_scene_node_set_position(&view->scene_tree->node,
|
||||
view->x, view->y);
|
||||
ssd_update_geometry(view);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue