mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-21 06:59:44 -05:00
surface: add wlr_surface_role.precommit
This allows to emit the unmap event before the surface becomes actually unmapped for most shells.
This commit is contained in:
parent
4984ea49ee
commit
16d7e09d99
11 changed files with 70 additions and 13 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue