mirror of
https://github.com/swaywm/sway.git
synced 2024-11-22 16:01:27 +00: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
|
@ -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