mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-02-17 22:05:56 -05:00
layer-shell: implement configure scheduling
This commit introduces wlr_layer_surface_v1.scheduled and implements configure scheduling mechanism used by xdg-surface, unifying the API.
This commit is contained in:
parent
59fa3637c3
commit
9a36c89e5a
2 changed files with 42 additions and 14 deletions
|
|
@ -77,6 +77,10 @@ struct wlr_layer_surface_v1 {
|
|||
|
||||
struct wlr_layer_surface_v1_state current, pending;
|
||||
|
||||
// Properties to be sent to the client in the next configure event.
|
||||
struct wlr_layer_surface_v1_configure scheduled;
|
||||
struct wl_event_source *configure_idle;
|
||||
|
||||
struct wl_listener surface_destroy;
|
||||
|
||||
struct {
|
||||
|
|
@ -117,7 +121,7 @@ struct wlr_layer_shell_v1 *wlr_layer_shell_v1_create(struct wl_display *display)
|
|||
* layer_surface will signal its map event when the surface is ready to assume
|
||||
* this size. Returns the associated configure serial.
|
||||
*/
|
||||
uint32_t wlr_layer_surface_v1_configure(struct wlr_layer_surface_v1 *surface,
|
||||
uint32_t wlr_layer_surface_v1_set_size(struct wlr_layer_surface_v1 *surface,
|
||||
uint32_t width, uint32_t height);
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue