mirror of
https://gitlab.gnome.org/GNOME/gimp.git
synced 2025-07-03 17:33:25 +00:00
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:
commit
1f0f6ddcd9
1 changed files with 3 additions and 0 deletions
|
@ -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 ();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue