Carlos Garnacho
8b769a3412
wayland: Set an specific role on surfaces passed in wp_tablet_tool.set_cursor
...
This is now separated from the generic cursor one. This means that wl_surfaces
can't be shared across wl_pointer and wp_tablet_tool. This is a change in
tablet protocol v2.
2016-07-22 13:31:09 +02:00
Carlos Garnacho
72ee6b8b65
wayland: Use wl_fixed_t for angle arguments in wp_tablet_tool
...
This is a change in tablet protocol v2
2016-07-22 13:31:09 +02:00
Carlos Garnacho
3d9bb1cc09
wayland: Use tablet protocol v2
...
This commit merely updates the code generation from the v2 protocol
description.
2016-07-22 13:31:09 +02:00
Carlos Garnacho
ccf6dcd865
wayland: Ensure tablet objects tear down resources properly
...
Otherwise the resource is still linked to a wl_list whose storage
has been freed, leading to invalid writes.
2016-05-10 17:45:04 +02:00
Carlos Garnacho
0f93ad8b53
wayland: Add methods to update the position of different tools' cursors
2016-05-03 18:17:01 +02:00
Carlos Garnacho
a631010a7a
wayland: Implement tool notification
...
Those must be notified to clients before proximity_in, only if the client
didn't have a resource for this tool previously.
2016-05-03 18:17:01 +02:00
Carlos Garnacho
ec53b5562d
wayland: Implement wl_tablet_tool.set_cursor
...
Each tool has its own MetaCursorRenderer instance, which is created/destroyed
upon proximity, and possibly updated through focus and set_cursor calls in
between.
2016-05-03 18:17:01 +02:00
Carlos Garnacho
521e934cb9
wayland: Implement wl_tablet_tool device event emission
...
This takes care of the emission of motion/down/up/button, in addition
to the extra distance/pressure/tilt axes.
2016-05-03 18:17:01 +02:00
Carlos Garnacho
edfb8fe19b
wayland: Add focus management to MetaWaylandTabletTool
...
Tools can now switch between surfaces, which implies the emission
of wl_tablet_tool.proximity_in/out events.
2016-05-03 18:17:01 +02:00
Carlos Garnacho
ee394a6cd3
wayland: Add MetaWaylandTabletTool
...
This struct holds the server-side information of a wl_tablet_tool, which
represents an specific tool of an specific tablet, and is unique as such.
2016-05-03 13:05:06 +02:00