mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-09 13:29:46 -05:00
Add first try to add wl_shell to rootston
This commit is contained in:
parent
1ddda91b1b
commit
ed9a43c213
6 changed files with 97 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue