From 012e38fbe55dad39a9b3c882195efc69e8aedb1f Mon Sep 17 00:00:00 2001 From: emersion Date: Sun, 1 Jul 2018 11:54:42 +0100 Subject: surface: add wlr_surface.previous --- include/wlr/types/wlr_surface.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'include/wlr') 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 { -- cgit v1.2.3