x11, ime: Include Xkb 'group' field when injecting Gdk key events
After crrev.com/c/1789603, KeyEvent ctor for X11 assumes keyboard group (which is used to determine which keyboard layout is in use), can be extracted from XKeyEvent using XkbGroupForCoreState function [1], which stored, along with other bit fields, in XKeyEvent::state field. In order to be able support IME engines like IBus, GtkUi implementation intercepts Gdk Events, translates them into XKeyEvents and inject them into X11 Event Source. Such conversion was not including 'group' field, which causes issues such as the one described in crbug.com/1021732. [1] https://code.woboq.org/qt5/include/X11/extensions/XKB.h.html#_M/XkbGroupForCoreState Bug: 1021732 Change-Id: Iec0246e4ccae2cb22a384e30b33b86b8b17588bc Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1902426Reviewed-by:Thomas Anderson <thomasanderson@chromium.org> Commit-Queue: Nick Yamane <nickdiego@igalia.com> Cr-Commit-Position: refs/heads/master@{#713327}
Showing
Please register or sign in to comment