mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-18 14:34:52 +02:00
Wayland: A new option to turn off IME
This commit is contained in:
8
glfw/init.c
vendored
8
glfw/init.c
vendored
@@ -57,7 +57,10 @@ static _GLFWinitconfig _glfwInitHints = {
|
||||
.ns = {
|
||||
.menubar = true, // macOS menu bar
|
||||
.chdir = true // macOS bundle chdir
|
||||
}
|
||||
},
|
||||
.wl = {
|
||||
.ime = true, // Wayland IME support
|
||||
},
|
||||
};
|
||||
|
||||
// Terminate the library
|
||||
@@ -296,6 +299,9 @@ GLFWAPI void glfwInitHint(int hint, int value)
|
||||
case GLFW_COCOA_MENUBAR:
|
||||
_glfwInitHints.ns.menubar = value;
|
||||
return;
|
||||
case GLFW_WAYLAND_IME:
|
||||
_glfwInitHints.wl.ime = value;
|
||||
return;
|
||||
}
|
||||
|
||||
_glfwInputError(GLFW_INVALID_ENUM,
|
||||
|
||||
Reference in New Issue
Block a user