aboutsummaryrefslogtreecommitdiffstats
path: root/sway/desktop/xwayland.c
diff options
context:
space:
mode:
authorLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-08-17 23:11:09 +1000
committerLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-08-18 10:39:38 +1000
commit4e755c4b123e1dd8478be63ff6b48d2d1ceaa04b (patch)
treebc63ea4c44379a40a4caf1305cbbcf6269fb5b1b /sway/desktop/xwayland.c
parentHandle xwayland views sending new sizes in their commits (diff)
downloadsway-4e755c4b123e1dd8478be63ff6b48d2d1ceaa04b.tar.gz
sway-4e755c4b123e1dd8478be63ff6b48d2d1ceaa04b.tar.zst
sway-4e755c4b123e1dd8478be63ff6b48d2d1ceaa04b.zip
Set current size when a floating xwayland view resizes
This avoids sending an unnecessary configure.
Diffstat (limited to 'sway/desktop/xwayland.c')
-rw-r--r--sway/desktop/xwayland.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sway/desktop/xwayland.c b/sway/desktop/xwayland.c
index b5df907d..e0c44b39 100644
--- a/sway/desktop/xwayland.c
+++ b/sway/desktop/xwayland.c
@@ -293,6 +293,8 @@ static void handle_commit(struct wl_listener *listener, void *data) {
293 // It maps at a small size then changes afterwards. 293 // It maps at a small size then changes afterwards.
294 view->width = state->width; 294 view->width = state->width;
295 view->height = state->height; 295 view->height = state->height;
296 view->swayc->current.view_width = state->width;
297 view->swayc->current.view_height = state->height;
296 container_set_geometry_from_floating_view(view->swayc); 298 container_set_geometry_from_floating_view(view->swayc);
297 transaction_commit_dirty(); 299 transaction_commit_dirty();
298 } 300 }