Skip to content

Instantly share code, notes, and snippets.

@emersion
Created October 18, 2018 16:29
Show Gist options
  • Save emersion/ad8225bbe30767d6821346c08fda407a to your computer and use it in GitHub Desktop.
Save emersion/ad8225bbe30767d6821346c08fda407a to your computer and use it in GitHub Desktop.
Compositor-side cursors
<?xml version="1.0" encoding="UTF-8"?>
<protocol name="wp_compositor_cursor_unstable_v1">
<interface name="zwp_compositor_cursor_manager_v1" version="1">
<request name="destroy" type="destructor"></request>
<enum name="device_type">
<entry name="pointer" value="1" summary="Pointer"/>
<entry name="tablet_tool" value="2" summary="Tablet tool"/>
</enum>
<request name="get_compositor_cursor_theme">
<arg name="id" type="new_id" interface="zwp_compositor_cursor_theme_v1"/>
<arg name="seat" type="object" interface="wl_seat"/>
<arg name="device" type="uint" enum="device_type"/>
<arg name="scale" type="int"/>
</request>
</interface>
<interface name="zwp_compositor_cursor_theme_v1" version="1">
<request name="destroy" type="destructor"></request>
<event name="cursor">
<arg name="name" type="string"/>
</event>
<event name="done"></event>
<request name="get_compositor_cursor">
<arg name="id" type="new_id" interface="zwp_compositor_cursor_v1"/>
<arg name="name" type="string"/>
</request>
</interface>
<interface name="zwp_compositor_cursor_v1" version="1">
<request name="destroy" type="destructor"></request>
<event name="image">
<arg name="buffer_width" type="uint"/>
<arg name="buffer_height" type="uint"/>
<arg name="hotspot_x" type="uint"/>
<arg name="hotspot_y" type="uint"/>
<arg name="delay" type="uint"/>
</event>
<event name="done"></event>
<request name="get_image_buffer">
<arg name="id" type="new_id" interface="wl_buffer"/>
<arg name="image_index" type="uint"/>
</request>
</interface>
</protocol>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment