diff options
author | Kenny Levinsen <kl@kl.wtf> | 2021-02-23 00:46:45 +0100 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2021-02-23 19:38:05 +0100 |
commit | 95901d906ade2c6698eee1f956e105508a21ab79 (patch) | |
tree | 9602954d14269cfcf7deb19f6ce7d6b621cacd1c /sway/desktop/xdg_shell.c | |
parent | transaction: Remove unused ready_immediately (diff) | |
download | sway-95901d906ade2c6698eee1f956e105508a21ab79.tar.gz sway-95901d906ade2c6698eee1f956e105508a21ab79.tar.zst sway-95901d906ade2c6698eee1f956e105508a21ab79.zip |
shells: Update comment about size change on commit
Diffstat (limited to 'sway/desktop/xdg_shell.c')
-rw-r--r-- | sway/desktop/xdg_shell.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sway/desktop/xdg_shell.c b/sway/desktop/xdg_shell.c index 0ac2c55d..843ff90a 100644 --- a/sway/desktop/xdg_shell.c +++ b/sway/desktop/xdg_shell.c | |||
@@ -293,7 +293,9 @@ static void handle_commit(struct wl_listener *listener, void *data) { | |||
293 | new_geo.y != view->geometry.y; | 293 | new_geo.y != view->geometry.y; |
294 | 294 | ||
295 | if (new_size) { | 295 | if (new_size) { |
296 | // The view has unexpectedly sent a new size | 296 | // The client changed its surface size in this commit. For floating |
297 | // containers, we resize the container to match. For tiling containers, | ||
298 | // we only recenter the surface. | ||
297 | desktop_damage_view(view); | 299 | desktop_damage_view(view); |
298 | memcpy(&view->geometry, &new_geo, sizeof(struct wlr_box)); | 300 | memcpy(&view->geometry, &new_geo, sizeof(struct wlr_box)); |
299 | if (container_is_floating(view->container)) { | 301 | if (container_is_floating(view->container)) { |