kitty/glfw
Dominique Martinet 897fd9486e glfw/ibus input: use text from ime event instead of global
When a key is pressed, text is generated from xkb and attached to the
global key_event variable.
If another key is pressed before ibus replies, this text in global
variable would be overwritten before the processed reply comes in and
the wrong character would be input, as shown in logs with
--debug-keyboard:

Press scancode: 0x19 clean_sym: w composed_sym: w text: w mods: numlock glfw_key: 87 (W) xkb_key: 119 (w)
↳ to IBUS: keycode: 0x11 keysym: 0x77 (w) mods: numlock
Press scancode: 0x20 clean_sym: o composed_sym: o text: o mods: numlock glfw_key: 79 (O) xkb_key: 111 (o)
↳ to IBUS: keycode: 0x18 keysym: 0x6f (o) mods: numlockIBUS processed scancode: 0x19 release: 0 handled: 0
From IBUS: scancode: 0x19 name: w is_release: 0
↳ to application: glfw_keycode: 0x57 (W) keysym: 0x77 (w) action: PRESS mods: numlock  text: o
on_key_input: glfw key: 87 native_code: 0x77 action: PRESS mods: 0x0 text: 'o' state: 0 sent text to child
IBUS processed scancode: 0x20 release: 0 handled: 0
From IBUS: scancode: 0x20 name: o is_release: 0
↳ to application: glfw_keycode: 0x4f (O) keysym: 0x6f (o) action: PRESS mods: numlock  text: o
on_key_input: glfw key: 79 native_code: 0x6f action: PRESS mods: 0x0 text: 'o' state: 0 sent text to child

Since the whole event is memcpy'd we can just use the text from the
event attached to the reply instead.
2018-09-21 07:34:01 +09:00
..
backend_utils.c Wayland: Work on supporting drop of file paths 2018-09-05 21:41:47 +05:30
backend_utils.h Wayland: Work on supporting drop of file paths 2018-09-05 21:41:47 +05:30
cocoa_init.m Update GLFW from upstream 2018-06-22 13:26:41 +05:30
cocoa_joystick.h Initial import of glfw 2017-12-01 12:15:36 +05:30
cocoa_joystick.m Update bundled glfw 2017-12-01 12:16:16 +05:30
cocoa_monitor.m Update bundled glfw 2018-03-03 11:21:09 +05:30
cocoa_platform.h macOS: Make full screening of kitty much faster by using the "traditional full screen" mode of cocoa, similar to iTerm and MacVim 2018-09-12 15:45:08 +05:30
cocoa_time.c Initial import of glfw 2017-12-01 12:15:36 +05:30
cocoa_window.m macOS: Make full screening of kitty much faster by using the "traditional full screen" mode of cocoa, similar to iTerm and MacVim 2018-09-12 15:45:08 +05:30
context.c Update bundled glfw 2018-02-08 09:15:40 +05:30
dbus_glfw.c If malloc fails remove timer from queue 2018-08-09 08:52:22 +05:30
dbus_glfw.h Give IBUS a maximum of three seconds to respond to a key press 2018-07-12 18:18:21 +05:30
egl_context.c Initial import of glfw 2017-12-01 12:15:36 +05:30
egl_context.h Initial import of glfw 2017-12-01 12:15:36 +05:30
glfw.py macOS: Make full screening of kitty much faster by using the "traditional full screen" mode of cocoa, similar to iTerm and MacVim 2018-09-12 15:45:08 +05:30
glfw3.h Wayland: Allow using the --class to set the app id 2018-09-06 06:54:38 +05:30
glx_context.c Update bundled glfw 2018-01-29 12:30:05 +05:30
glx_context.h Initial import of glfw 2017-12-01 12:15:36 +05:30
ibus_glfw.c Linux: Turn off IME unless the GLFW_IM_MODULE=ibus env var is set 2018-09-07 16:07:01 +05:30
ibus_glfw.h Fix Shift key not working with IBUS 2018-07-12 18:18:20 +05:30
init.c Remove debug printf 2018-08-31 07:56:21 +05:30
input.c Implement high precision scrolling with the trackpad on platforms such as macOS and Wayland that implement it. 2018-08-24 11:00:58 +05:30
internal.h Wayland: Allow using the --class to set the app id 2018-09-06 06:54:38 +05:30
linux_joystick.c Update bundled glfw 2018-02-08 09:15:40 +05:30
linux_joystick.h Initial import of glfw 2017-12-01 12:15:36 +05:30
mappings.h Update bundled glfw 2018-03-03 11:21:09 +05:30
monitor.c Update bundled glfw 2018-03-03 11:21:09 +05:30
nsgl_context.h Initial import of glfw 2017-12-01 12:15:36 +05:30
nsgl_context.m Update bundled glfw 2018-03-27 15:07:25 +05:30
null_init.c Initial import of glfw 2017-12-01 12:15:36 +05:30
null_joystick.c Initial import of glfw 2017-12-01 12:15:36 +05:30
null_joystick.h Initial import of glfw 2017-12-01 12:15:36 +05:30
null_monitor.c Update bundled glfw 2018-03-03 11:21:09 +05:30
null_platform.h Initial import of glfw 2017-12-01 12:15:36 +05:30
null_window.c macOS: Use a custom mouse cursor that shows up well on both light and dark backgrounds 2018-07-07 10:43:30 +05:30
osmesa_context.c Initial import of glfw 2017-12-01 12:15:36 +05:30
osmesa_context.h Update bundled glfw 2017-12-01 12:16:16 +05:30
posix_thread.c Initial import of glfw 2017-12-01 12:15:36 +05:30
posix_thread.h Initial import of glfw 2017-12-01 12:15:36 +05:30
posix_time.c Initial import of glfw 2017-12-01 12:15:36 +05:30
posix_time.h Initial import of glfw 2017-12-01 12:15:36 +05:30
source-info.json Refactor linux backend event loops 2018-07-12 18:18:17 +05:30
vulkan.c Update bundled glfw 2018-03-03 11:21:09 +05:30
wgl_context.c Update GLFW from upstream 2018-09-04 09:49:18 +05:30
wgl_context.h Update bundled glfw 2018-01-12 05:34:53 +05:30
win32_init.c Update GLFW from upstream 2018-09-04 09:49:18 +05:30
win32_joystick.c Initial import of glfw 2017-12-01 12:15:36 +05:30
win32_joystick.h Initial import of glfw 2017-12-01 12:15:36 +05:30
win32_monitor.c Update GLFW from upstream 2018-09-04 09:49:18 +05:30
win32_platform.h Update glfw from upstream 2018-09-10 09:51:06 +05:30
win32_thread.c Initial import of glfw 2017-12-01 12:15:36 +05:30
win32_time.c Initial import of glfw 2017-12-01 12:15:36 +05:30
win32_window.c Update GLFW from upstream 2018-09-04 09:49:18 +05:30
window.c Wayland: Allow using the --class to set the app id 2018-09-06 06:54:38 +05:30
wl_init.c Wayland: Add support for animated cursors 2018-09-10 11:54:22 +05:30
wl_monitor.c Update bundled glfw 2018-03-03 11:21:09 +05:30
wl_platform.h Wayland: Add support for animated cursors 2018-09-10 11:54:22 +05:30
wl_window.c Wayland: Add support for animated cursors 2018-09-10 11:54:22 +05:30
x11_init.c Remove debug printf 2018-08-31 07:56:21 +05:30
x11_monitor.c Workaround for bug in glfw causing crash when hotplugging monitors 2018-08-21 12:52:16 +05:30
x11_platform.h Fix #758 2018-07-29 11:07:36 +05:30
x11_window.c Wayland: Work on supporting drop of file paths 2018-09-05 21:41:47 +05:30
xkb_glfw.c glfw/ibus input: use text from ime event instead of global 2018-09-21 07:34:01 +09:00
xkb_glfw.h Give IBUS a maximum of three seconds to respond to a key press 2018-07-12 18:18:21 +05:30