diff options
author | emersion <contact@emersion.fr> | 2017-09-26 23:59:25 +0200 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2017-09-26 23:59:25 +0200 |
commit | ed9a43c2134f19ddaa4d8e7c9f680d8a3d8329a6 (patch) | |
tree | 0fee00bb989aefceb807b2b4306f45dbfe2ddff2 /include/wlr | |
parent | 1ddda91b1b647df339b5b0a6aefa383e48d634d8 (diff) |
Add first try to add wl_shell to rootston
Diffstat (limited to 'include/wlr')
-rw-r--r-- | include/wlr/types/wlr_wl_shell.h | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/include/wlr/types/wlr_wl_shell.h b/include/wlr/types/wlr_wl_shell.h index 1443bbf0..614d785b 100644 --- a/include/wlr/types/wlr_wl_shell.h +++ b/include/wlr/types/wlr_wl_shell.h @@ -7,20 +7,35 @@ struct wlr_wl_shell { struct wl_global *wl_global; struct wl_list wl_resources; struct wl_list surfaces; + uint32_t ping_timeout; + + struct { + struct wl_signal new_surface; + } events; void *data; }; struct wlr_wl_shell_surface { + struct wlr_wl_shell *shell; + struct wl_client *client; struct wl_resource *surface; struct wlr_texture *wlr_texture; struct wl_list link; + uint32_t ping_serial; + struct wl_event_source *ping_timer; + + struct { + struct wl_signal ping_timeout; + } events; + void *data; }; - struct wlr_wl_shell *wlr_wl_shell_create(struct wl_display *display); void wlr_wl_shell_destroy(struct wlr_wl_shell *wlr_wl_shell); +void wlr_wl_shell_surface_ping(struct wlr_wl_shell_surface *surface); + #endif |