I did a lot of this in a very ad-hoc fashion with no proper commit
history. As such, the kindest thing to do seemed to be to just squash it
into this one commit.
This will help with packaging things to meet current policies on
FreeBSD without having to patch things or manually strip binaries,
etc.
-D in FreeBSD's install(1) does not work like GNU install's -D and
is something else entirely. Manually create the target directories
with mkdir first before installing files.
Signed-off-by: Tobias Kortkamp <tobik@FreeBSD.org>
The previous value of 128 isn't sufficient because some hand-crafted
SVGs have comments at the start. Going for a whole page of memory seemed
like the right amount of data without becoming too slow.
By using escape to abort all key input sequences, it became unbindable
despite being documented as so. Make the sequence double-escape to fix
this. The downside here is now double-escape is unbindable, but that's
unlikely to be an issue.
Fixes#147
We don't need to know when all paths were last touched, just when we
switched to the current path, and the last time that the file changed.
This also fixes a bug where imv would double-load images as it refreshed
its internal mtime.
It turns out, the paths from stdin weren't being truncated. The issue
was with the use of the SDL event queue for passing the paths back to
imv's main thread.
The events were being pushed correctly, but due to a workaround for a
bug in SDL, instead of flushing the contents of the event queue, we now
ignore window events until all events already in the queue have been
handled.
This fixes#141