mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-06 09:34:09 +00:00
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:
parent
475824e709
commit
953b93737a
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue