Wintab: Set the CXO_SYSTEM option

Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/3860
This commit is contained in:
Luca Bacci
2021-06-07 14:04:09 +02:00
parent af747315d7
commit f67bf8d892

View File

@ -516,6 +516,17 @@ wintab_init_check (GdkDeviceManagerWin32 *device_manager)
devix, *hctx));
wintab_contexts = g_list_append (wintab_contexts, hctx);
/* Set the CXO_SYSTEM flag */
if (!(lc.lcOptions & CXO_SYSTEM))
{
lc.lcOptions |= CXO_SYSTEM;
if (!p_WTSetA (hctx, &lc))
{
g_warning ("Could not set the CXO_SYSTEM option in the WINTAB context");
}
}
#if 0
(*p_WTEnable) (*hctx, TRUE);
#endif