Merge branch 'hide_mouse_on_key' of https://github.com/Luflosi/kitty

This commit is contained in:
Kovid Goyal
2019-04-15 19:55:00 +05:30
3 changed files with 7 additions and 2 deletions

View File

@@ -128,6 +128,7 @@ on_key_input(int key, int scancode, int action, int mods, const char* text, int
(action == GLFW_RELEASE ? "RELEASE" : (action == GLFW_PRESS ? "PRESS" : "REPEAT")),
mods, text, state);
if (!w) { debug("no active window, ignoring\n"); return; }
if (OPT(mouse_hide_wait) < 0) hide_mouse(global_state.callback_os_window);
Screen *screen = w->render_data.screen;
switch(state) {
case 1: // update pre-edit text