aboutsummaryrefslogtreecommitdiffstats
path: root/sway/desktop/xwayland.c
diff options
context:
space:
mode:
authorLibravatar Kenny Levinsen <kl@kl.wtf>2021-02-23 00:46:45 +0100
committerLibravatar Simon Ser <contact@emersion.fr>2021-02-23 19:38:05 +0100
commit95901d906ade2c6698eee1f956e105508a21ab79 (patch)
tree9602954d14269cfcf7deb19f6ce7d6b621cacd1c /sway/desktop/xwayland.c
parenttransaction: Remove unused ready_immediately (diff)
downloadsway-95901d906ade2c6698eee1f956e105508a21ab79.tar.gz
sway-95901d906ade2c6698eee1f956e105508a21ab79.tar.zst
sway-95901d906ade2c6698eee1f956e105508a21ab79.zip
shells: Update comment about size change on commit
Diffstat (limited to 'sway/desktop/xwayland.c')
-rw-r--r--sway/desktop/xwayland.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sway/desktop/xwayland.c b/sway/desktop/xwayland.c
index 5c3a39ea..14a93982 100644
--- a/sway/desktop/xwayland.c
+++ b/sway/desktop/xwayland.c
@@ -407,8 +407,9 @@ static void handle_commit(struct wl_listener *listener, void *data) {
407 new_geo.y != view->geometry.y; 407 new_geo.y != view->geometry.y;
408 408
409 if (new_size) { 409 if (new_size) {
410 // The view has unexpectedly sent a new size 410 // The client changed its surface size in this commit. For floating
411 // eg. The Firefox "Save As" dialog when downloading a file 411 // containers, we resize the container to match. For tiling containers,
412 // we only recenter the surface.
412 desktop_damage_view(view); 413 desktop_damage_view(view);
413 memcpy(&view->geometry, &new_geo, sizeof(struct wlr_box)); 414 memcpy(&view->geometry, &new_geo, sizeof(struct wlr_box));
414 if (container_is_floating(view->container)) { 415 if (container_is_floating(view->container)) {