mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-22 12:55:58 +01:00
Merge pull request #69 from 4e554c4c/user_data
Add user data to wlr_* structs
This commit is contained in:
commit
ce65a0c138
9 changed files with 20 additions and 0 deletions
|
@ -41,6 +41,8 @@ struct wlr_input_device {
|
|||
struct wlr_tablet_tool *tablet_tool;
|
||||
struct wlr_tablet_pad *tablet_pad;
|
||||
};
|
||||
|
||||
void *data;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -20,6 +20,8 @@ struct wlr_keyboard {
|
|||
struct {
|
||||
struct wl_signal key;
|
||||
} events;
|
||||
|
||||
void *data;
|
||||
};
|
||||
|
||||
void wlr_keyboard_led_update(struct wlr_keyboard *keyboard, uint32_t leds);
|
||||
|
|
|
@ -51,6 +51,8 @@ struct wlr_output {
|
|||
struct wlr_renderer *renderer;
|
||||
struct wlr_texture *texture;
|
||||
} cursor;
|
||||
|
||||
void *data;
|
||||
};
|
||||
|
||||
void wlr_output_enable(struct wlr_output *output, bool enable);
|
||||
|
|
|
@ -17,6 +17,8 @@ struct wlr_pointer {
|
|||
struct wl_signal button;
|
||||
struct wl_signal axis;
|
||||
} events;
|
||||
|
||||
void *data;
|
||||
};
|
||||
|
||||
struct wlr_event_pointer_motion {
|
||||
|
|
|
@ -45,6 +45,8 @@ struct wlr_surface {
|
|||
|
||||
struct wl_listener compositor_listener; // destroy listener used by compositor
|
||||
void *compositor_data;
|
||||
|
||||
void *data;
|
||||
};
|
||||
|
||||
struct wlr_renderer;
|
||||
|
|
|
@ -22,6 +22,8 @@ struct wlr_tablet_pad {
|
|||
struct wl_signal ring;
|
||||
struct wl_signal strip;
|
||||
} events;
|
||||
|
||||
void *data;
|
||||
};
|
||||
|
||||
struct wlr_event_tablet_pad_button {
|
||||
|
|
|
@ -17,6 +17,8 @@ struct wlr_tablet_tool {
|
|||
struct wl_signal tip;
|
||||
struct wl_signal button;
|
||||
} events;
|
||||
|
||||
void *data;
|
||||
};
|
||||
|
||||
enum wlr_tablet_tool_axes {
|
||||
|
|
|
@ -16,6 +16,8 @@ struct wlr_touch {
|
|||
struct wl_signal motion;
|
||||
struct wl_signal cancel;
|
||||
} events;
|
||||
|
||||
void *data;
|
||||
};
|
||||
|
||||
struct wlr_event_touch_down {
|
||||
|
|
|
@ -6,12 +6,16 @@ struct wlr_xdg_shell_v6 {
|
|||
struct wl_global *wl_global;
|
||||
struct wl_list wl_resources;
|
||||
struct wl_list surfaces;
|
||||
|
||||
void *data;
|
||||
};
|
||||
|
||||
struct wlr_xdg_surface_v6 {
|
||||
struct wl_resource *resource;
|
||||
struct wl_resource *surface;
|
||||
struct wl_list link;
|
||||
|
||||
void *data;
|
||||
};
|
||||
|
||||
struct wlr_xdg_shell_v6 *wlr_xdg_shell_v6_init(struct wl_display *display);
|
||||
|
|
Loading…
Reference in a new issue