Commit Graph

7 Commits

Author SHA1 Message Date
Daijiro Fukuda
0ba4b36557 Add caret position to preedit-callback
- Win32: This works fine.
- macOS: The caret is always at the last of the preedit text.
- X11:
  - over-the-spot: The callback is not used.
  - on-the-spot: In IBus, the caret is always at the last of the preedit
    text, although the actual position can be changed. On-the-spot on X11
    has many other unstable behaviors, so allow this problem for now.
2022-05-30 14:42:41 +09:00
Daijiro Fukuda
dc953898cc X11: Use GLFW_X11_ONTHESPOT of glfwInitHint to change on-the-spot
GLFW has the function `glfwInitHint` for setting initialization parameters.
So use this instead of environmental variable.
2022-05-24 14:14:57 +09:00
Daijiro Fukuda
97f52c9cf8 tests: Add preedit callback to display preedit contents 2022-05-24 14:14:57 +09:00
Daijiro Fukuda
a0daa8801c tests: Add functions about IME status and preedit position 2022-05-24 14:14:57 +09:00
Daijiro Fukuda
66d668501d tests: just improve view 2022-05-24 14:14:57 +09:00
Daijiro Fukuda
6f85a43e78 tests: Fix branching of using fontconfig
fontconfig seems to have a problem with macOS, so limit to X11 or Wayland.
2022-05-24 14:14:57 +09:00
Daijiro Fukuda
a7ec734281 Add new test input_text to check IME input 2022-05-24 14:14:57 +09:00