aboutsummaryrefslogtreecommitdiffstats
path: root/sway/desktop/xdg_shell.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/xdg_shell.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/xdg_shell.c')
-rw-r--r--sway/desktop/xdg_shell.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sway/desktop/xdg_shell.c b/sway/desktop/xdg_shell.c
index 4c13f91f..0ac2c55d 100644
--- a/sway/desktop/xdg_shell.c
+++ b/sway/desktop/xdg_shell.c
@@ -298,8 +298,7 @@ static void handle_commit(struct wl_listener *listener, void *data) {
298 memcpy(&view->geometry, &new_geo, sizeof(struct wlr_box)); 298 memcpy(&view->geometry, &new_geo, sizeof(struct wlr_box));
299 if (container_is_floating(view->container)) { 299 if (container_is_floating(view->container)) {
300 view_update_size(view); 300 view_update_size(view);
301 transaction_commit_dirty(); 301 transaction_commit_dirty_client();
302 transaction_notify_view_ready_immediately(view);
303 } else { 302 } else {
304 view_center_surface(view); 303 view_center_surface(view);
305 } 304 }