mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-16 06:59:47 -05:00
Chage the 'base' field to be the name of the super class instead
Instead of display->base.base we want display->proxy.object, or
buffer->buffer.resource.object.id = id;
which makes it clear what we end up addressing.
This commit is contained in:
parent
b71cd9e31d
commit
b313b02983
7 changed files with 212 additions and 206 deletions
|
|
@ -98,18 +98,18 @@ 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_compositor {
|
||||
struct wl_object base;
|
||||
struct wl_object object;
|
||||
};
|
||||
|
||||
struct wl_resource {
|
||||
struct wl_object base;
|
||||
struct wl_object object;
|
||||
void (*destroy)(struct wl_resource *resource,
|
||||
struct wl_client *client);
|
||||
struct wl_list link;
|
||||
};
|
||||
|
||||
struct wl_buffer {
|
||||
struct wl_resource base;
|
||||
struct wl_resource resource;
|
||||
struct wl_compositor *compositor;
|
||||
struct wl_visual *visual;
|
||||
int32_t width, height;
|
||||
|
|
@ -120,16 +120,16 @@ struct wl_buffer {
|
|||
};
|
||||
|
||||
struct wl_surface {
|
||||
struct wl_resource base;
|
||||
struct wl_resource resource;
|
||||
struct wl_client *client;
|
||||
};
|
||||
|
||||
struct wl_shell {
|
||||
struct wl_object base;
|
||||
struct wl_object object;
|
||||
};
|
||||
|
||||
struct wl_input_device {
|
||||
struct wl_object base;
|
||||
struct wl_object object;
|
||||
struct wl_surface *pointer_focus;
|
||||
struct wl_surface *keyboard_focus;
|
||||
struct wl_array keys;
|
||||
|
|
@ -138,11 +138,11 @@ struct wl_input_device {
|
|||
};
|
||||
|
||||
struct wl_visual {
|
||||
struct wl_object base;
|
||||
struct wl_object object;
|
||||
};
|
||||
|
||||
struct wl_drag_offer {
|
||||
struct wl_object base;
|
||||
struct wl_object object;
|
||||
};
|
||||
|
||||
struct wl_drag {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue