From c0e86f811b3a8e4f45768db86e97d1b0fda5616f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Sat, 20 Aug 2016 16:01:43 +0200 Subject: vis: overhaul input queue handling Let vis_keys_feed always have an immediate effect. Previously, if called from a key input handler the keys would just be added to the input queue and processed once the current key handler returned. This also affects the exposed Lua API. --- vis.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'vis.h') diff --git a/vis.h b/vis.h index 1a2a7d0..1c72525 100644 --- a/vis.h +++ b/vis.h @@ -458,10 +458,8 @@ const char *vis_keys_next(Vis*, const char *keys); * queue (or a previously recorded macro) to key handling functions (see struct * KeyAction) which consume the input. * - * this functions pushes/appends further input to the end of the input queue. - * if it is called from within a key handling function itself, the fed keys - * will be interpreted once the key handler returns. otherwhise the keys are - * immediately interpreted as if they were entered from a user. */ + * this functions pushes/appends further input to the end of the input queue + * and immediately interprets them as if they were entered by a user. */ void vis_keys_feed(Vis*, const char *keys); /* inform vis that a signal occured, the return value indicates whether the signal -- cgit v1.2.3