mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2026-04-03 07:15:42 -04:00
Use different cursor images in the compositor
This commit is contained in:
parent
77fb167956
commit
1db21f1cf5
5 changed files with 223 additions and 103 deletions
|
|
@ -61,10 +61,12 @@ struct wl_display {
|
|||
|
||||
struct wl_global {
|
||||
struct wl_object *object;
|
||||
wl_client_connect_func_t func;
|
||||
wl_client_connect_func_t func;
|
||||
struct wl_list link;
|
||||
};
|
||||
|
||||
WL_EXPORT struct wl_surface wl_grab_surface;
|
||||
|
||||
WL_EXPORT void
|
||||
wl_client_post_event(struct wl_client *client, struct wl_object *sender,
|
||||
uint32_t opcode, ...)
|
||||
|
|
@ -361,6 +363,9 @@ wl_surface_post_event(struct wl_surface *surface,
|
|||
{
|
||||
va_list ap;
|
||||
|
||||
if (surface == &wl_grab_surface)
|
||||
return;
|
||||
|
||||
va_start(ap, event);
|
||||
wl_connection_vmarshal(surface->client->connection,
|
||||
sender, event, ap,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue