mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-03 09:01:42 -05:00
Add hook to allow globals to send cold-plug events to new clients.
This lets us boot strap the client side state cache. This commit also adds the first user of this feature, an output object that represents the current output. Very simple at this point, but will grow to something more like RandR 1.2.
This commit is contained in:
parent
8049cbb88a
commit
ee02ca6fa4
7 changed files with 124 additions and 22 deletions
10
wayland.h
10
wayland.h
|
|
@ -85,7 +85,10 @@ int wl_display_add_socket(struct wl_display *display, const char *name, size_t n
|
|||
void wl_display_run(struct wl_display *display);
|
||||
|
||||
void wl_display_add_object(struct wl_display *display, struct wl_object *object);
|
||||
int wl_display_add_global(struct wl_display *display, struct wl_object *object);
|
||||
|
||||
typedef void (*wl_client_connect_func_t)(struct wl_client *client, struct wl_object *global);
|
||||
|
||||
int wl_display_add_global(struct wl_display *display, struct wl_object *object, wl_client_connect_func_t func);
|
||||
|
||||
struct wl_compositor {
|
||||
struct wl_object base;
|
||||
|
|
@ -120,6 +123,11 @@ struct wl_surface_interface {
|
|||
int32_t x, int32_t y, int32_t width, int32_t height);
|
||||
};
|
||||
|
||||
void
|
||||
wl_client_post_event(struct wl_client *client,
|
||||
struct wl_object *sender,
|
||||
uint32_t event, ...);
|
||||
|
||||
void
|
||||
wl_surface_post_event(struct wl_surface *surface,
|
||||
struct wl_object *sender,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue