Set current size when a floating xwayland view resizes

This avoids sending an unnecessary configure.
This commit is contained in:
Ryan Dwyer 2018-08-17 23:11:09 +10:00
parent 8af4e2e3e6
commit 4e755c4b12

View file

@ -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();
}