Add xdg_shell ack_configure event
This commit is contained in:
parent
af3dea6d43
commit
f2b225ad0b
|
@ -126,6 +126,7 @@ struct wlr_xdg_surface_v6 {
|
||||||
struct wl_signal commit;
|
struct wl_signal commit;
|
||||||
struct wl_signal destroy;
|
struct wl_signal destroy;
|
||||||
struct wl_signal ping_timeout;
|
struct wl_signal ping_timeout;
|
||||||
|
struct wl_signal ack_configure;
|
||||||
|
|
||||||
struct wl_signal request_maximize;
|
struct wl_signal request_maximize;
|
||||||
struct wl_signal request_fullscreen;
|
struct wl_signal request_fullscreen;
|
||||||
|
|
|
@ -813,8 +813,9 @@ static void xdg_surface_ack_configure(struct wl_client *client,
|
||||||
|
|
||||||
surface->configured = true;
|
surface->configured = true;
|
||||||
surface->configure_serial = serial;
|
surface->configure_serial = serial;
|
||||||
|
|
||||||
free(configure);
|
free(configure);
|
||||||
|
|
||||||
|
wl_signal_emit(&surface->events.ack_configure, surface);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void xdg_surface_set_window_geometry(struct wl_client *client,
|
static void xdg_surface_set_window_geometry(struct wl_client *client,
|
||||||
|
@ -1154,6 +1155,7 @@ static void xdg_shell_get_xdg_surface(struct wl_client *wl_client,
|
||||||
wl_signal_init(&surface->events.commit);
|
wl_signal_init(&surface->events.commit);
|
||||||
wl_signal_init(&surface->events.destroy);
|
wl_signal_init(&surface->events.destroy);
|
||||||
wl_signal_init(&surface->events.ping_timeout);
|
wl_signal_init(&surface->events.ping_timeout);
|
||||||
|
wl_signal_init(&surface->events.ack_configure);
|
||||||
|
|
||||||
wl_signal_add(&surface->surface->events.destroy,
|
wl_signal_add(&surface->surface->events.destroy,
|
||||||
&surface->surface_destroy_listener);
|
&surface->surface_destroy_listener);
|
||||||
|
|
Loading…
Reference in New Issue