No need to actually cancel input requests when closing a window
[rodin/chimara.git] / libchimara / input.c
index 18a7ecbcb124aae33295ebde4ca27314bc8e0f44..716431b4a0313d5a61144d5e2580b232157dd17b 100644 (file)
@@ -290,7 +290,7 @@ glk_cancel_line_event(winid_t win, event_t *event)
                event->val2 = 0;
        }
 
-       if(win->input_request_type == INPUT_REQUEST_NONE)
+       if(win->input_request_type != INPUT_REQUEST_LINE && win->input_request_type != INPUT_REQUEST_LINE_UNICODE)
                return;
 
        g_signal_handler_block( G_OBJECT(win->widget), win->keypress_handler );