diff options
author | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-06-23 16:24:11 +1000 |
---|---|---|
committer | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-06-23 16:24:11 +1000 |
commit | 38398e2d77d57dc06b67ec88a54091c897915602 (patch) | |
tree | c80935807865fd96ab7d037070287d4dfaba1863 /include/sway/desktop | |
parent | Preserve buffers during transactions (diff) | |
download | sway-38398e2d77d57dc06b67ec88a54091c897915602.tar.gz sway-38398e2d77d57dc06b67ec88a54091c897915602.tar.zst sway-38398e2d77d57dc06b67ec88a54091c897915602.zip |
Implement atomic layout updates for tree operations
This implements atomic layout updates for when views map, reparent or
unmap.
Diffstat (limited to 'include/sway/desktop')
-rw-r--r-- | include/sway/desktop/transaction.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/sway/desktop/transaction.h b/include/sway/desktop/transaction.h index 5aff28e9..d6adc609 100644 --- a/include/sway/desktop/transaction.h +++ b/include/sway/desktop/transaction.h | |||
@@ -1,5 +1,6 @@ | |||
1 | #ifndef _SWAY_TRANSACTION_H | 1 | #ifndef _SWAY_TRANSACTION_H |
2 | #define _SWAY_TRANSACTION_H | 2 | #define _SWAY_TRANSACTION_H |
3 | #include <wlr/render/wlr_texture.h> | ||
3 | #include "sway/tree/container.h" | 4 | #include "sway/tree/container.h" |
4 | 5 | ||
5 | /** | 6 | /** |
@@ -48,4 +49,12 @@ void transaction_commit(struct sway_transaction *transaction); | |||
48 | */ | 49 | */ |
49 | void transaction_notify_view_ready(struct sway_view *view, uint32_t serial); | 50 | void transaction_notify_view_ready(struct sway_view *view, uint32_t serial); |
50 | 51 | ||
52 | /** | ||
53 | * Get the texture that should be rendered for a view. | ||
54 | * | ||
55 | * In most cases this will return the normal live texture for a view, but if the | ||
56 | * view is in a transaction then it'll return a saved texture. | ||
57 | */ | ||
58 | struct wlr_texture *transaction_get_texture(struct sway_view *view); | ||
59 | |||
51 | #endif | 60 | #endif |