Skip to content

gtk3to4: upgrade from depr device_grab to seat grab which is a deprecation action [ALTERNATIVE VERSION]

Lukas Oberhuber requested to merge lukaso/gimp:alternative-seat_grab into master

Migrates from the deprecated gdk_device_grab API to the new gdk_seat_grab API.

https://docs.gtk.org/gtk4/migrating-3to4.html#stop-using-gdkdevicemanager

There is code (at least for the keyboard version) that checks if the device has changed. This code had to be removed due to the API changes. Given this functionality has been deprecated by Gtk and is fully removed in Gtk4, I feel this is the right thing to do.

Other

Note This is a more conservative version of !534 (closed), where the code around device change detection is preserved.

It is unlikely that functionality has been lost given the deprecation.

This has not removed any device change detection.

Merge request reports