Skip to content

clutter: Add API to set cursor focus

This is the second of three MRs required to remove the shell_global_sync_pointer workaround, the other MRs are !429 (closed) and !555 (closed).

This adds API to ClutterInputDevice to enable or disable cursor focus of the input device that's called from the shells grabHelper. There we check which pointer devices are currently positioned outside the grabbed area and send CLUTTER_LEAVE events to those while grabbing, and CLUTTER_ENTER events to them after grabbing.

Also we add a method to get the touch sequences of a device and get rid of clutter_input_device_get_pointer_actor in favor of clutter_input_device_get_actor which can also get pointer actors of touch sequences.

Depends on !422 (merged) (commit is included here)

Edited by Jonas Dreßler

Merge request reports