summaryrefslogtreecommitdiffstats
path: root/app/widgets/gimpdeviceinfo.c
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-08 08:16:47 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-08 08:16:47 +0000
commit839c46e19ac4aa00b619a185ad48ee977162ef2c (patch)
tree01f1e79a4e164244941361adb0cf062098537f12 /app/widgets/gimpdeviceinfo.c
parentAdding debian version 2.10.36-3. (diff)
downloadgimp-839c46e19ac4aa00b619a185ad48ee977162ef2c.tar.xz
gimp-839c46e19ac4aa00b619a185ad48ee977162ef2c.zip
Merging upstream version 2.10.38.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'app/widgets/gimpdeviceinfo.c')
-rw-r--r--app/widgets/gimpdeviceinfo.c18
1 files changed, 16 insertions, 2 deletions
diff --git a/app/widgets/gimpdeviceinfo.c b/app/widgets/gimpdeviceinfo.c
index 594dd90..053af61 100644
--- a/app/widgets/gimpdeviceinfo.c
+++ b/app/widgets/gimpdeviceinfo.c
@@ -80,7 +80,6 @@ G_DEFINE_TYPE (GimpDeviceInfo, gimp_device_info, GIMP_TYPE_TOOL_PRESET)
#define parent_class gimp_device_info_parent_class
-
static void
gimp_device_info_class_init (GimpDeviceInfoClass *klass)
{
@@ -535,8 +534,23 @@ gimp_device_info_set_device (GimpDeviceInfo *info,
* Also we had no clear report on macOS or BSD (AFAIK) of broken
* tablets with any of the version of the code. So let's keep
* these similar to Linux for now.
+ *
+ * Update: it's not needed for Windows Ink, only Wintab.
*/
- return FALSE;
+ {
+ Gimp *gimp = NULL;
+
+ g_object_get (info, "gimp", &gimp, NULL);
+ if (gimp)
+ {
+ GimpWin32PointerInputAPI api = GIMP_WIN32_POINTER_INPUT_API_WINTAB;
+
+ g_object_get (gimp->config, "win32-pointer-input-api", &api, NULL);
+
+ if (api == GIMP_WIN32_POINTER_INPUT_API_WINTAB)
+ return FALSE;
+ }
+ }
#endif /* G_OS_WIN32 */
}
else if (! device && ! info->device)