aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRyan Dwyer <ryandwyer1@gmail.com>2018-06-18 20:42:12 +1000
committerRyan Dwyer <ryandwyer1@gmail.com>2018-06-18 20:42:12 +1000
commit1c89f32533534f6e78c81c95578f40df45bb9016 (patch)
tree98ba154e1cbd5148e9b7178037c26a3dadcec839 /include
parent645bf446fab8db581b04babb1a34aa3c40428058 (diff)
Preserve buffers during transactions
* Also fix parts of the rendering where it was rendering the pending state instead of current.
Diffstat (limited to 'include')
-rw-r--r--include/sway/tree/view.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/include/sway/tree/view.h b/include/sway/tree/view.h
index d0093db5..fc4c8df9 100644
--- a/include/sway/tree/view.h
+++ b/include/sway/tree/view.h
@@ -72,10 +72,11 @@ struct sway_view {
list_t *marks; // char *
list_t *instructions; // struct sway_transaction_instruction *
- // If saved_texture is set, the main surface of the view will render this
- // texture instead of its own. This is used while waiting for transactions
- // to complete.
- struct wlr_texture *saved_texture;
+ // If saved_buffer is set, the main surface of the view will render this
+ // buffer/texture instead of its own. This is used while waiting for
+ // transactions to complete.
+ struct wlr_buffer *saved_buffer;
+ int saved_surface_width, saved_surface_height;
struct wlr_texture *marks_focused;
struct wlr_texture *marks_focused_inactive;