Wayland: A new option to turn off IME

This commit is contained in:
Kovid Goyal
2024-04-05 14:56:11 +05:30
parent f9e38d3311
commit 2c4ffba0f3
15 changed files with 58 additions and 16 deletions

8
glfw/init.c vendored
View File

@@ -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,