diff options
author | Kirill Primak <vyivel@eclair.cafe> | 2022-01-13 14:08:54 +0300 |
---|---|---|
committer | Kirill Primak <vyivel@eclair.cafe> | 2022-01-13 15:15:54 +0300 |
commit | 50827ed7f5f01ed2f03f67c5e9e55e13ede06748 (patch) | |
tree | afc79225ee3099bf3d40833f3201114981ff52f9 /include/wlr | |
parent | 617eb4fb9338c6960feb95b1a734c9cdd6bc5c46 (diff) |
surface: improve role precommit hook
Now the role precommit hook is called before the commit, not on
wl_surface.commit request, and takes a state which is to be applied.
Diffstat (limited to 'include/wlr')
-rw-r--r-- | include/wlr/types/wlr_compositor.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/wlr/types/wlr_compositor.h b/include/wlr/types/wlr_compositor.h index 0146a8ab..071610b8 100644 --- a/include/wlr/types/wlr_compositor.h +++ b/include/wlr/types/wlr_compositor.h @@ -73,7 +73,8 @@ struct wlr_surface_state { struct wlr_surface_role { const char *name; void (*commit)(struct wlr_surface *surface); - void (*precommit)(struct wlr_surface *surface); + void (*precommit)(struct wlr_surface *surface, + const struct wlr_surface_state *state); }; struct wlr_surface_output { |