diff options
author | emersion <contact@emersion.fr> | 2018-07-09 23:02:03 +0100 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2018-07-15 19:30:19 +0100 |
commit | 16d7e09d996f7fd211e3a6ff8960a15217ca3710 (patch) | |
tree | 71e824840f52651e950e220a8005f80cbc655d0d /include/wlr | |
parent | 4984ea49eeaa292d66be9e535d93a4d8185f3e18 (diff) |
surface: add wlr_surface_role.precommit
This allows to emit the unmap event before the surface becomes
actually unmapped for most shells.
Diffstat (limited to 'include/wlr')
-rw-r--r-- | include/wlr/types/wlr_surface.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/wlr/types/wlr_surface.h b/include/wlr/types/wlr_surface.h index 0e3b5ff4..ee9afa86 100644 --- a/include/wlr/types/wlr_surface.h +++ b/include/wlr/types/wlr_surface.h @@ -39,6 +39,7 @@ struct wlr_surface_state { struct wlr_surface_role { const char *name; void (*commit)(struct wlr_surface *surface); + void (*precommit)(struct wlr_surface *surface); }; struct wlr_surface { |