diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2016-08-20 16:01:43 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2016-08-24 11:10:00 +0200 |
| commit | c0e86f811b3a8e4f45768db86e97d1b0fda5616f (patch) | |
| tree | 0dfc6da2764d6999256338e86180765b53abc633 /vis.h | |
| parent | c7df560b818224d9a9ca3b0ba31a54312dc7062b (diff) | |
| download | vis-c0e86f811b3a8e4f45768db86e97d1b0fda5616f.tar.gz vis-c0e86f811b3a8e4f45768db86e97d1b0fda5616f.tar.xz | |
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.
Diffstat (limited to 'vis.h')
| -rw-r--r-- | vis.h | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -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 |
