From 16d7e09d996f7fd211e3a6ff8960a15217ca3710 Mon Sep 17 00:00:00 2001 From: emersion Date: Mon, 9 Jul 2018 23:02:03 +0100 Subject: surface: add wlr_surface_role.precommit This allows to emit the unmap event before the surface becomes actually unmapped for most shells. --- include/wlr/types/wlr_surface.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/wlr') 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 { -- cgit v1.2.3