aboutsummaryrefslogtreecommitdiffstats
path: root/include
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 /include
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 'include')
-rw-r--r--include/sway/desktop/transaction.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/sway/desktop/transaction.h b/include/sway/desktop/transaction.h
index 175489c5..af28169e 100644
--- a/include/sway/desktop/transaction.h
+++ b/include/sway/desktop/transaction.h
@@ -28,6 +28,12 @@ struct sway_view;
28 */ 28 */
29void transaction_commit_dirty(void); 29void transaction_commit_dirty(void);
30 30
31/*
32 * Same as transaction_commit_dirty, but signalling that this is a
33 * client-initiated change has already taken effect.
34 */
35void transaction_commit_dirty_client(void);
36
31/** 37/**
32 * Notify the transaction system that a view is ready for the new layout. 38 * Notify the transaction system that a view is ready for the new layout.
33 * 39 *