mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-03 09:01:42 -05:00
First step towards drag and drop protocol
This commit is contained in:
parent
084d41aac1
commit
eef08fbb1a
11 changed files with 444 additions and 46 deletions
|
|
@ -402,17 +402,13 @@ wl_display_allocate_id(struct wl_display *display)
|
|||
}
|
||||
|
||||
WL_EXPORT void
|
||||
wl_surface_set_user_data(struct wl_surface *surface, void *user_data)
|
||||
wl_proxy_set_user_data(struct wl_proxy *proxy, void *user_data)
|
||||
{
|
||||
struct wl_proxy *proxy = (struct wl_proxy *) surface;
|
||||
|
||||
proxy->user_data = user_data;
|
||||
}
|
||||
|
||||
WL_EXPORT void *
|
||||
wl_surface_get_user_data(struct wl_surface *surface)
|
||||
wl_proxy_get_user_data(struct wl_proxy *proxy)
|
||||
{
|
||||
struct wl_proxy *proxy = (struct wl_proxy *) surface;
|
||||
|
||||
return proxy->user_data;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue