wintab32: Fix match_token to match XWayland devices.

XWayland tablet devices have the Wayland seat ID appended to the end of
them, preceded by a colon. This prevents match_token from properly
detecting XWayland devices and causes Wintab32 to fail to initialize.
This change allows a matched token to end in a colon, and thus allows
XWayland tablet devices to be detected correctly.

Signed-off-by: John Chadwick <john@jchw.io>
This commit is contained in:
John Chadwick 2022-10-03 02:21:34 -04:00 committed by Alexandre Julliard
parent 475824e709
commit 953b93737a

View file

@ -374,7 +374,7 @@ static BOOL match_token(const char *haystack, const char *needle)
for (q = needle; *q && *p && tolower(*p) == tolower(*q); q++)
p++;
if (! *q && (isspace(*p) || !*p))
if (! *q && (isspace(*p) || *p == ':' || !*p))
return TRUE;
while (*p && ! isspace(*p))