mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-18 06:59:46 -05:00
Set up visuals in wayland-server
Still very much hand-wavey, but at least it's only in one place now.
This commit is contained in:
parent
b3fc757cd8
commit
c5c510ec75
6 changed files with 58 additions and 46 deletions
|
|
@ -91,8 +91,15 @@ void wl_client_destroy(struct wl_client *client);
|
|||
void wl_client_post_no_memory(struct wl_client *client);
|
||||
void wl_client_post_global(struct wl_client *client, struct wl_object *object);
|
||||
|
||||
struct wl_visual {
|
||||
struct wl_object object;
|
||||
};
|
||||
|
||||
struct wl_compositor {
|
||||
struct wl_object object;
|
||||
struct wl_visual argb_visual;
|
||||
struct wl_visual premultiplied_argb_visual;
|
||||
struct wl_visual rgb_visual;
|
||||
};
|
||||
|
||||
struct wl_resource {
|
||||
|
|
@ -129,10 +136,6 @@ struct wl_shell {
|
|||
struct wl_object object;
|
||||
};
|
||||
|
||||
struct wl_visual {
|
||||
struct wl_object object;
|
||||
};
|
||||
|
||||
struct wl_grab;
|
||||
struct wl_grab_interface {
|
||||
void (*motion)(struct wl_grab *grab,
|
||||
|
|
@ -224,6 +227,10 @@ wl_input_device_set_keyboard_focus(struct wl_input_device *device,
|
|||
struct wl_surface *surface,
|
||||
uint32_t time);
|
||||
|
||||
int
|
||||
wl_compositor_init(struct wl_compositor *compositor,
|
||||
const struct wl_compositor_interface *interface,
|
||||
struct wl_display *display);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue