mirror of
https://github.com/swaywm/sway.git
synced 2026-04-26 06:46:26 -04:00
xdg_shell: remember size supplied by surface
When surface does not comply with supplied size, sway centers it in container but do not remember new size and tries to reconfigure it after any event (e.g. focus change)
This commit is contained in:
parent
3ee3a9ef60
commit
5347884c90
1 changed files with 1 additions and 0 deletions
|
|
@ -290,6 +290,7 @@ static void handle_commit(struct wl_listener *listener, void *data) {
|
||||||
desktop_damage_view(view);
|
desktop_damage_view(view);
|
||||||
view_update_size(view, new_geo.width, new_geo.height);
|
view_update_size(view, new_geo.width, new_geo.height);
|
||||||
memcpy(&view->geometry, &new_geo, sizeof(struct wlr_box));
|
memcpy(&view->geometry, &new_geo, sizeof(struct wlr_box));
|
||||||
|
wlr_xdg_toplevel_set_size(xdg_surface, new_geo.width, new_geo.height);
|
||||||
desktop_damage_view(view);
|
desktop_damage_view(view);
|
||||||
transaction_commit_dirty();
|
transaction_commit_dirty();
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue