diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/sway/desktop/transaction.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/include/sway/desktop/transaction.h b/include/sway/desktop/transaction.h index 7dd58ba8..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. |
@@ -38,8 +39,11 @@ void transaction_commit_dirty_client(void); | |||
38 | * 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. |
39 | * | 40 | * |
40 | * 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. | ||
41 | */ | 45 | */ |
42 | void transaction_notify_view_ready_by_serial(struct sway_view *view, | 46 | bool transaction_notify_view_ready_by_serial(struct sway_view *view, |
43 | uint32_t serial); | 47 | uint32_t serial); |
44 | 48 | ||
45 | /** | 49 | /** |
@@ -47,8 +51,11 @@ void transaction_notify_view_ready_by_serial(struct sway_view *view, | |||
47 | * identifying the instruction by geometry rather than by serial. | 51 | * identifying the instruction by geometry rather than by serial. |
48 | * | 52 | * |
49 | * 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. | ||
50 | */ | 57 | */ |
51 | void transaction_notify_view_ready_by_geometry(struct sway_view *view, | 58 | bool transaction_notify_view_ready_by_geometry(struct sway_view *view, |
52 | double x, double y, int width, int height); | 59 | double x, double y, int width, int height); |
53 | 60 | ||
54 | #endif | 61 | #endif |