mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-03 09:01:40 -05:00
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.
This commit is contained in:
parent
617eb4fb93
commit
50827ed7f5
7 changed files with 20 additions and 18 deletions
|
|
@ -20,7 +20,8 @@ void unmap_xdg_surface(struct wlr_xdg_surface *surface);
|
|||
void reset_xdg_surface(struct wlr_xdg_surface *xdg_surface);
|
||||
void destroy_xdg_surface(struct wlr_xdg_surface *surface);
|
||||
void handle_xdg_surface_commit(struct wlr_surface *wlr_surface);
|
||||
void handle_xdg_surface_precommit(struct wlr_surface *wlr_surface);
|
||||
void handle_xdg_surface_precommit(struct wlr_surface *wlr_surface,
|
||||
const struct wlr_surface_state *state);
|
||||
|
||||
void create_xdg_positioner(struct wlr_xdg_client *client, uint32_t id);
|
||||
struct wlr_xdg_positioner_resource *get_xdg_positioner_from_resource(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue