aboutsummaryrefslogtreecommitdiffstats
path: root/include/sway/desktop/transaction.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/sway/desktop/transaction.h')
-rw-r--r--include/sway/desktop/transaction.h23
1 files changed, 15 insertions, 8 deletions
diff --git a/include/sway/desktop/transaction.h b/include/sway/desktop/transaction.h
index 175489c5..17d41fa3 100644
--- a/include/sway/desktop/transaction.h
+++ b/include/sway/desktop/transaction.h
@@ -1,6 +1,7 @@
1#ifndef _SWAY_TRANSACTION_H 1#ifndef _SWAY_TRANSACTION_H
2#define _SWAY_TRANSACTION_H 2#define _SWAY_TRANSACTION_H
3#include <stdint.h> 3#include <stdint.h>
4#include <stdbool.h>
4 5
5/** 6/**
6 * Transactions enable us to perform atomic layout updates. 7 * Transactions enable us to perform atomic layout updates.
@@ -28,12 +29,21 @@ struct sway_view;
28 */ 29 */
29void transaction_commit_dirty(void); 30void transaction_commit_dirty(void);
30 31
32/*
33 * Same as transaction_commit_dirty, but signalling that this is a
34 * client-initiated change has already taken effect.
35 */
36void transaction_commit_dirty_client(void);
37
31/** 38/**
32 * Notify the transaction system that a view is ready for the new layout. 39 * Notify the transaction system that a view is ready for the new layout.
33 * 40 *
34 * When all views in the transaction are ready, the layout will be applied. 41 * When all views in the transaction are ready, the layout will be applied.
42 *
43 * A success boolean is returned denoting that this part of the transaction is
44 * ready.
35 */ 45 */
36void transaction_notify_view_ready_by_serial(struct sway_view *view, 46bool transaction_notify_view_ready_by_serial(struct sway_view *view,
37 uint32_t serial); 47 uint32_t serial);
38 48
39/** 49/**
@@ -41,14 +51,11 @@ void transaction_notify_view_ready_by_serial(struct sway_view *view,
41 * identifying the instruction by geometry rather than by serial. 51 * identifying the instruction by geometry rather than by serial.
42 * 52 *
43 * This is used by xwayland views, as they don't have serials. 53 * This is used by xwayland views, as they don't have serials.
54 *
55 * A success boolean is returned denoting that this part of the transaction is
56 * ready.
44 */ 57 */
45void transaction_notify_view_ready_by_geometry(struct sway_view *view, 58bool transaction_notify_view_ready_by_geometry(struct sway_view *view,
46 double x, double y, int width, int height); 59 double x, double y, int width, int height);
47 60
48/**
49 * Unconditionally notify the transaction system that a view is ready for the
50 * new layout.
51 */
52void transaction_notify_view_ready_immediately(struct sway_view *view);
53
54#endif 61#endif