aboutsummaryrefslogtreecommitdiff
path: root/include/wlr
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-07-01 11:54:42 +0100
committeremersion <contact@emersion.fr>2018-07-04 19:12:18 +0100
commit012e38fbe55dad39a9b3c882195efc69e8aedb1f (patch)
tree149b1561d964da343abd0650f20969ef0af49d2a /include/wlr
parent78555abba3fdd272f50dcb8b8bf3b7811ddd9fc5 (diff)
surface: add wlr_surface.previous
Diffstat (limited to 'include/wlr')
-rw-r--r--include/wlr/types/wlr_surface.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/wlr/types/wlr_surface.h b/include/wlr/types/wlr_surface.h
index a587e7bc..76f09cc6 100644
--- a/include/wlr/types/wlr_surface.h
+++ b/include/wlr/types/wlr_surface.h
@@ -64,9 +64,10 @@ struct wlr_surface {
/**
* `current` contains the current, committed surface state. `pending`
* accumulates state changes from the client between commits and shouldn't
- * be accessed by the compositor directly.
+ * be accessed by the compositor directly. `previous` contains the state of
+ * the previous commit.
*/
- struct wlr_surface_state current, pending;
+ struct wlr_surface_state current, pending, previous;
const char *role; // the lifetime-bound role or null
struct {