Skip to content

Commit

Permalink
Change the definition of IBUS_CAP_SYNC_PROCESS_KEY
Browse files Browse the repository at this point in the history
After the new proces key event is integrated in ibus-x11,
IBUS_CAP_SYNC_PROCESS_KEY capability is now set the sync mode only
since ibus-hangul requires forward-key-event for the sync mode only.
  • Loading branch information
fujiwarat authored and Peng Wu committed Nov 11, 2022
1 parent 24bf7fc commit 705dd25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/engine.c
Original file line number Diff line number Diff line change
Expand Up @@ -1578,8 +1578,8 @@ ibus_hangul_engine_process_key_event (IBusEngine *engine,
* See: https://github.com/choehwanjin/ibus-hangul/issues/40
*/
if (use_event_forwarding
#if IBUS_CHECK_VERSION(1, 5, 27)
&& !(hangul->caps & IBUS_CAP_SYNC_PROCESS_KEY)
#if IBUS_CHECK_VERSION(1, 5, 28)
&& (hangul->caps & IBUS_CAP_SYNC_PROCESS_KEY_V2)
#endif
) {
if (!retval) {
Expand Down

0 comments on commit 705dd25

Please sign in to comment.