surface: add wlr_surface.previous

This commit is contained in:
emersion 2018-07-01 11:54:42 +01:00
parent 78555abba3
commit 012e38fbe5
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48
2 changed files with 9 additions and 8 deletions

View file

@ -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 {