Skip to content

Commit

Permalink
Implement _glfwSetIMEStatusWayland
Browse files Browse the repository at this point in the history
  • Loading branch information
kappa-maintainer committed Dec 24, 2024
1 parent 0c57adf commit 71745e9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/wl_window.c
Original file line number Diff line number Diff line change
Expand Up @@ -3639,6 +3639,12 @@ void _glfwResetPreeditTextWayland(_GLFWwindow* window)

void _glfwSetIMEStatusWayland(_GLFWwindow* window, int active)
{
if (window->wl.textInputV3)
{
active ? zwp_text_input_v3_enable(window->wl.textInputV3) : zwp_text_input_v3_disable(window->wl.textInputV3);
}
else if (window->wl.textInputV1)
active ? zwp_text_input_v1_activate(window->wl.textInputV1, _glfw.wl.seat, window->wl.surface) : zwp_text_input_v1_deactivate(window->wl.textInputV1, _glfw.wl.seat);
}

int _glfwGetIMEStatusWayland(_GLFWwindow* window)
Expand Down

0 comments on commit 71745e9

Please sign in to comment.