Merge branch 'gabrybarbe/wip/device-critical-fix' into 'master'

Issue #14219: avoid critical on master devices

Closes #14219

See merge request GNOME/gimp!2332
This commit is contained in:
Gabriele 2025-06-30 22:55:14 +02:00
commit 1f0f6ddcd9

View file

@ -518,6 +518,9 @@ gimp_modifiers_manager_get_keys (GdkDevice *device,
g_return_if_fail (GDK_IS_DEVICE (device) || device == NULL);
if (device && gdk_device_get_device_type (device) == GDK_DEVICE_TYPE_MASTER)
device = NULL;
vendor_id = device ? gdk_device_get_vendor_id (device) : NULL;
product_id = device ? gdk_device_get_product_id (device) : NULL;
modifiers = modifiers & gimp_get_all_modifiers_mask ();