GNOME Bugzilla – Bug 790920
Add GdkSeat convenience API
Last modified: 2017-12-08 02:28:02 UTC
With GdkDeviceManager being dropped in master, there's a couple things missing to make all devices neatly accessible. Adding patches for those.
Created attachment 364531 [details] [review] gdk: Add gdk_seat_get_master_pointers() Traditionally (and on most backends) there's a single master pointer driven by all pointing devices. The notable exception is wayland though, where master pointing devices are created per capability in the case of pointer/touch, and one for each drawing tablet. This function call makes it easy to access all these.
Created attachment 364532 [details] [review] gdk: Add GDK_SEAT_CAPABILITY_TABLET_PAD Tablet pads don't adapt really well to any other capability, so add a distinct one to be able to query those properly.
Review of attachment 364531 [details] [review]: Otherwise, looks fine to me. ::: gdk/gdkseat.c @@ +472,3 @@ + * In other backends where there can possibly be multiple foci + * (eg. wayland), this function will return all master + * #GdkDevice<!-- -->s that represent these. no need for the <!-- -->s dance anymore. gdk-pixbuf understands #GdkDevices these days.
Review of attachment 364532 [details] [review]: looks ok to me
Attachment 364531 [details] pushed as 4c45022 - gdk: Add gdk_seat_get_master_pointers() Attachment 364532 [details] pushed as 7531be3 - gdk: Add GDK_SEAT_CAPABILITY_TABLET_PAD