mirror of
https://github.com/swaywm/sway.git
synced 2024-12-30 17:06:40 +01:00
Set current size when a floating xwayland view resizes
This avoids sending an unnecessary configure.
This commit is contained in:
parent
8af4e2e3e6
commit
4e755c4b12
1 changed files with 2 additions and 0 deletions
|
@ -293,6 +293,8 @@ static void handle_commit(struct wl_listener *listener, void *data) {
|
|||
// It maps at a small size then changes afterwards.
|
||||
view->width = state->width;
|
||||
view->height = state->height;
|
||||
view->swayc->current.view_width = state->width;
|
||||
view->swayc->current.view_height = state->height;
|
||||
container_set_geometry_from_floating_view(view->swayc);
|
||||
transaction_commit_dirty();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue