Commit 953b9373 authored by John Chadwick's avatar John Chadwick Committed by Alexandre Julliard

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: 's avatarJohn Chadwick <john@jchw.io>
parent 475824e7
...@@ -374,7 +374,7 @@ static BOOL match_token(const char *haystack, const char *needle) ...@@ -374,7 +374,7 @@ static BOOL match_token(const char *haystack, const char *needle)
for (q = needle; *q && *p && tolower(*p) == tolower(*q); q++) for (q = needle; *q && *p && tolower(*p) == tolower(*q); q++)
p++; p++;
if (! *q && (isspace(*p) || !*p)) if (! *q && (isspace(*p) || *p == ':' || !*p))
return TRUE; return TRUE;
while (*p && ! isspace(*p)) while (*p && ! isspace(*p))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment