aboutsummaryrefslogtreecommitdiffstats
path: root/sway/desktop/xwayland.c
diff options
context:
space:
mode:
authorLibravatar Kenny Levinsen <kl@kl.wtf>2021-02-21 18:18:35 +0100
committerLibravatar Simon Ser <contact@emersion.fr>2021-02-23 19:38:05 +0100
commit35b9a41720e04bd7c74e81e0a63ee69d540f39e1 (patch)
treead6c57aa7291ea577c1a58ec461ece8bec222648 /sway/desktop/xwayland.c
parentFix wl_shm_format passed to wlr_texture_from_pixels (diff)
downloadsway-35b9a41720e04bd7c74e81e0a63ee69d540f39e1.tar.gz
sway-35b9a41720e04bd7c74e81e0a63ee69d540f39e1.tar.zst
sway-35b9a41720e04bd7c74e81e0a63ee69d540f39e1.zip
transaction: Note if instructions are server requests
On server request, we need to send configure events to inform the client of the new intended size. If the client changes size itself, sending a configure event will only cause problems. Use transaction_commit_dirty_client to distinguish between the two transaction causes.
Diffstat (limited to 'sway/desktop/xwayland.c')
-rw-r--r--sway/desktop/xwayland.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/desktop/xwayland.c b/sway/desktop/xwayland.c
index 3ed65083..5c3a39ea 100644
--- a/sway/desktop/xwayland.c
+++ b/sway/desktop/xwayland.c
@@ -413,7 +413,7 @@ static void handle_commit(struct wl_listener *listener, void *data) {
413 memcpy(&view->geometry, &new_geo, sizeof(struct wlr_box)); 413 memcpy(&view->geometry, &new_geo, sizeof(struct wlr_box));
414 if (container_is_floating(view->container)) { 414 if (container_is_floating(view->container)) {
415 view_update_size(view); 415 view_update_size(view);
416 transaction_commit_dirty(); 416 transaction_commit_dirty_client();
417 } else { 417 } else {
418 view_center_surface(view); 418 view_center_surface(view);
419 } 419 }