Skip to content

Commit

Permalink
util/IMdkit: Fix typing freeze with barcode reader
Browse files Browse the repository at this point in the history
After libX11 is fixed about the XIM jumbled input issues, too quick
focus change can causes a freeze with barcode reader.
Seems the modifier key of Alt-Tab effects the input of the barcode
reader but the new issue cannot be reproduced with debug messages.

Hence the new issue could effect the machine spec and timing.
I can avoid the new issue with adding sync() instead of a debug message.
I don't understand the issue fully but hope this fix.

BUG=https://gitlab.freedesktop.org/xorg/lib/libx11/-/issues/198
BUG=#2560
  • Loading branch information
fujiwarat committed Feb 13, 2024
1 parent 3e7ee44 commit b49f3a4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions util/IMdkit/i18nPtHdr.c
Original file line number Diff line number Diff line change
Expand Up @@ -1757,6 +1757,7 @@ static void ProcessQueue (XIMS ims, CARD16 connect_id)
switch (hdr->major_opcode)
{
case XIM_FORWARD_EVENT:
sync();
ForwardEventMessageProc(ims, &call_data, p1);
break;
}
Expand Down

0 comments on commit b49f3a4

Please sign in to comment.