Implement feedback

This commit is contained in:
Luflosi
2019-04-15 09:17:31 +02:00
parent 0e0aba7a5e
commit beb90f2c55
4 changed files with 4 additions and 7 deletions

View File

@@ -180,7 +180,7 @@ on_key_input(int key, int scancode, int action, int mods, const char* text, int
bool ok_to_send = action == GLFW_PRESS || action == GLFW_REPEAT || screen->modes.mEXTENDED_KEYBOARD;
if (ok_to_send) {
if (has_text) {
if (OPT(mouse_hide_key)) hide_mouse(global_state.callback_os_window);
if (OPT(mouse_hide_wait) < 0) hide_mouse(global_state.callback_os_window);
schedule_write_to_child(w->id, 1, text, strlen(text));
debug("sent text to child\n");
} else {