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