mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-24 06:59:45 -05:00
Use WLR_PRIVATE for private fields
This commit is contained in:
parent
e51ce333bc
commit
6006023a37
35 changed files with 262 additions and 249 deletions
|
|
@ -25,13 +25,13 @@ struct wlr_xwayland_shell_v1 {
|
|||
struct wl_signal new_surface; // struct wlr_xwayland_surface_v1
|
||||
} events;
|
||||
|
||||
// private state
|
||||
struct {
|
||||
struct wl_client *client;
|
||||
struct wl_list surfaces; // wlr_xwayland_surface_v1.link
|
||||
|
||||
struct wl_client *client;
|
||||
struct wl_list surfaces; // wlr_xwayland_surface_v1.link
|
||||
|
||||
struct wl_listener display_destroy;
|
||||
struct wl_listener client_destroy;
|
||||
struct wl_listener display_destroy;
|
||||
struct wl_listener client_destroy;
|
||||
} WLR_PRIVATE;
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
@ -41,12 +41,12 @@ struct wlr_xwayland_surface_v1 {
|
|||
struct wlr_surface *surface;
|
||||
uint64_t serial;
|
||||
|
||||
// private state
|
||||
|
||||
struct wl_resource *resource;
|
||||
struct wl_list link;
|
||||
struct wlr_xwayland_shell_v1 *shell;
|
||||
bool added;
|
||||
struct {
|
||||
struct wl_resource *resource;
|
||||
struct wl_list link;
|
||||
struct wlr_xwayland_shell_v1 *shell;
|
||||
bool added;
|
||||
} WLR_PRIVATE;
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -65,13 +65,13 @@ struct wlr_xwayland {
|
|||
|
||||
void *data;
|
||||
|
||||
// private state
|
||||
|
||||
struct wl_listener server_start;
|
||||
struct wl_listener server_ready;
|
||||
struct wl_listener server_destroy;
|
||||
struct wl_listener seat_destroy;
|
||||
struct wl_listener shell_destroy;
|
||||
struct {
|
||||
struct wl_listener server_start;
|
||||
struct wl_listener server_ready;
|
||||
struct wl_listener server_destroy;
|
||||
struct wl_listener seat_destroy;
|
||||
struct wl_listener shell_destroy;
|
||||
} WLR_PRIVATE;
|
||||
};
|
||||
|
||||
enum wlr_xwayland_surface_decorations {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue