Commit graph

772 commits

Author SHA1 Message Date
Harry Jeffery ed4b4ed755 Test both X11 and Wayland builds in ci 2019-07-18 23:22:20 +01:00
Harry Jeffery 7d72f3065a Update ci rules 2019-07-18 23:09:07 +01:00
Harry Jeffery 08fde6e05c wl: Pass events via pipe not queue 2019-07-16 01:11:54 +01:00
Harry Jeffery 966df15a4c x11: Pass events via pipe not queue 2019-07-16 01:11:18 +01:00
Harry Jeffery 364d14b3bd x11: Use pipe for custom event notification 2019-07-16 00:26:49 +01:00
Harry Jeffery 2f79eb8965 x11: Implement mouse input 2019-07-16 00:18:16 +01:00
Harry Jeffery d49a63d063 x11: Add fullscreen support 2019-07-15 23:57:54 +01:00
Harry Jeffery 37eb383408 x11: Fix crash by implementing window size accessors 2019-07-15 23:18:25 +01:00
Harry Jeffery d26684fcd4 Kill old debug logging 2019-07-15 23:14:54 +01:00
Harry Jeffery 4e41749187 Fix next frame command 2019-07-15 23:14:54 +01:00
Harry Jeffery dd69714d74 Wayland: Remove linux-only eventfd usage 2019-07-15 23:14:54 +01:00
Harry Jeffery 00491cc886 x11_window: Handle most input events 2019-07-13 16:53:22 +01:00
Harry Jeffery 33e283e423 x11_window: Implement wait_for_event 2019-07-13 13:27:49 +01:00
Harry Jeffery 0687370b2e Create stub X11 window implementation 2019-07-13 11:42:21 +01:00
Harry Jeffery f357024377 Make window system configurable 2019-07-13 11:02:37 +01:00
Harry Jeffery 81ae6d8bc6 Remove OpenGL awareness from core logic 2019-07-13 00:44:36 +01:00
Harry Jeffery 242dbe7cbe window: Formatting 2019-07-13 00:36:37 +01:00
Harry Jeffery 4473f6d8b7 Implement scroll input 2019-07-13 00:35:19 +01:00
Harry Jeffery 5a1571d00d Handle mouse input 2019-07-13 00:25:25 +01:00
Harry Jeffery 9651424722 Remove resizing, not supported in wayland yet 2019-07-12 23:46:45 +01:00
Harry Jeffery 311623d4c1 Modernise event loop 2019-07-12 23:32:44 +01:00
Harry Jeffery 88f7be23b0 Fix event loop hanging 2019-07-12 22:19:28 +01:00
Harry Jeffery d4bb4bd643 Fullscreen support 2019-07-12 21:45:40 +01:00
Harry Jeffery 3200b8f9db Start replacing glfw with imv_window 2019-07-12 00:21:30 +01:00
Harry Jeffery 0910ffd41a Create initial imv_window 2019-07-12 00:13:06 +01:00
Harry Jeffery 12988be654 Add static keyword to internal functions 2019-07-03 23:16:51 +01:00
Harry Jeffery 7c7dc660e5 Big glfw refactor
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.
2019-07-03 20:50:19 +01:00
Harry Jeffery 20e9d23b82 Release v3.1.2 2019-06-24 08:09:42 +01:00
Harry Jeffery 5b6618afd7 Fix manpage packaging 2019-06-24 08:07:29 +01:00
Harry Jeffery fc2722e1c0 Release v3.1.1 2019-06-22 21:40:25 +01:00
Harry Jeffery 4e53f4e9e6
Merge pull request #159 from t6/master
Allow overriding install commands
2019-06-22 21:35:03 +01:00
Tobias Kortkamp 8dbe8a8934
Allow overriding install commands
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>
2019-06-22 22:31:40 +02:00
Harry Jeffery 79bba4bf2c Release v3.1.0 2019-06-17 20:36:48 +01:00
Harry Jeffery b4028e981a Add imv_log 2019-06-13 22:17:12 +01:00
Harry Jeffery c544285c93 Readme: Fix link to license file 2019-06-13 00:02:50 +01:00
Harry Jeffery 9b57e0a89f svg: Fix flipped colors
Fixes #157
2019-06-12 20:04:48 +01:00
Harry Jeffery 4d965ab261 Add support for hidpi rendering
This fixes #148 but only when used with a version of SDL that includes
this patch: https://bugzilla.libsdl.org/show_bug.cgi?id=4521
2019-06-12 01:43:14 +01:00
Harry Jeffery db991685de imv:handle_event small tidy up 2019-06-12 01:43:14 +01:00
Harry Jeffery aa1a495a60 rsvg: Determine if svg from first 4096 bytes
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.
2019-06-12 01:43:14 +01:00
Harry Jeffery dfc7ba4b80
Merge pull request #154 from 7415963987456321/add-version-flag
Add version flag with -v
2019-05-30 00:26:28 +01:00
Harry Jeffery 43bc6f4ac2
Merge pull request #156 from vglfr/bugfix/svg/slowfix
Expand relative paths (fixes #149)
2019-05-30 00:23:44 +01:00
vglfr 7cf0b71618 Expand relative paths (fixes #149) 2019-05-26 09:46:59 +03:00
7415963987456321 9fc019cd41 Add version flag with -v 2019-05-10 00:21:17 +00:00
Harry Jeffery e278e28989 binds: Make Double-Escape the key sequence abort
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
2019-03-01 13:44:29 +00:00
Harry Jeffery 4a2ce2e9ee Fix copy-paste error in resizing mode parsing 2019-02-27 20:05:37 +00:00
Harry Jeffery cd0684a2cb Makefile: Don't use $(wildcard) 2019-02-23 21:04:10 +00:00
Harry Jeffery 28eb7b50dc navigator: Simplify file polling
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.
2019-02-16 21:54:52 +00:00
Harry Jeffery 4eaa1c89ae Add customisable image resizing behaviour
Two new flags: -w and -W enable resizing and recentering, respectively.
Also add an 'autoresize' config variable to control this behaviour.

Fixes #122
2019-02-16 21:01:38 +00:00
Harry Jeffery b1f7fe555c Fix truncated path list from stdin
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
2019-02-16 14:35:27 +00:00
Harry Jeffery 8323dfc6fc meta: Update CI badge 2019-02-15 22:42:36 +00:00