aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2017-10-12Much more portable MakefileBert Münnich
The config.mk file is now optional and only needs to be created if one wants to persistently overwrite default macro values. Features used in the Makefile that are not yet in the POSIX standard: - Advanced macro assignment operators '+=' and '?=' [1] - Special target .PHONY [2] - Pattern rules [3]; only needed when $srcdir != '.'. For every pattern rule there is an inference rule with the same effect. Hopefully, the inference rules get picked up by make programs not supporting pattern rules. - Silently including multiple possibly not exisiting files [4] [5] [1] http://austingroupbugs.net/view.php?id=330 [2] http://austingroupbugs.net/view.php?id=523 [3] http://austingroupbugs.net/view.php?id=513 [4] http://austingroupbugs.net/view.php?id=333 [5] http://austingroupbugs.net/view.php?id=518
2017-10-08Always include non-configurable part of CPPFLAGSBert Münnich
2017-10-08Move DEPFLAGS from Makefile to config.mkBert Münnich
2017-10-08Mention GNU make requirement in MakefileBert Münnich
2017-10-08Get rid of SRCDIR macro, VPATH on make cmd line sufficesBert Münnich
2017-10-06Add missing description for Button3 to man pageBert Münnich
2017-10-06Improve mouse supportBert Münnich
None of the mouse mappings uses a keyboard modifier, making it possible to access the most basic features by only using the mouse. Next/previous image with left button depending on cursor position, middle button for dragging, right button for switching to thumnail mode and wheel for zooming. Users can keep the old behaviour by simply not adapting the changes to the buttons array in config.def.h to their config.h file.
2017-10-05Simplify cursor reset in image modeBert Münnich
No need to give cursor name. reset_cursor() is now the only place to decide what cursor to fall back to.
2017-10-05Own win method for mouse cursor locationBert Münnich
2017-10-05Simplify cursor handlingBert Münnich
2017-10-04Mouse drag translates pointer position to image areaBert Münnich
This makes mouse panning more direct and faster.
2017-09-11Fix linker command lineBert Münnich
2017-09-11Only use targets in build messagesBert Münnich
2017-09-08Add -p flag to disable writing of cache and temporary filesAntti Korpi
Closes #285.
2017-09-08Move special targets to bottom of MakefileBert Münnich
2017-09-08Non-verbose buildBert Münnich
Verbose when build with `V=1'.
2017-09-08Support out-of-source buildsBert Münnich
Fixes issue #167. Long after closing this issue (kind of wontfix) we have switched to GNU make and can thus use its features like VPATH.
2017-09-08Simplify config.mkBert Münnich
2017-09-06Move configuration parts from Makefile into config.mkBert Münnich
2017-09-06Make pan fraction configurablejcalve
2017-09-06Add Max Voit to list of contributorsBert Münnich
2017-09-02Add key-handler action to copy image to clipboardBert Münnich
Thanks ploth for coming up with this: https://github.com/muennich/sxiv/issues/247#issuecomment-321316306 Replaces optional dependency on xsel(1) to xclip(1) as it supports this. Fixes issue #247
2017-05-17Adapt inotify_nop to API changesBert Münnich
2017-05-17Update copyright notice in autoreload_inotify.cBert Münnich
2017-05-17Merge branch 'autoreload'Bert Münnich
Pull request #278. Fixes issue #29 and issue #199.
2017-05-17Detect all file overwrites in autoreload_inotifyBert Münnich
mv(1) inside the same filesystem was not detected. Supporting this case made it necessary to always watch the directory. Turns out the logic and state keeping between arl_setup() and arl_handle() is easier, when using different watch descriptors for the file and the directory and not using a oneshot descriptor for the file. Requiring an absolute canonical path for arl_setup() simplifies dir and base name splitting. No need for dirname(3) and basename(3) anymore.
2017-05-17Compiler independent buffer alignmentBert Münnich
2017-05-17Read all available inotify eventsBert Münnich
Loop reading from inotify fd in arl_handle(); requires non-blocking inotify fd.
2017-05-17Simplify inotify cleanupBert Münnich
2017-05-17Revised error reporting in autoreload_inotifyBert Münnich
No repeated error messages after failed initialization. No error messages on failed inotify_rm_watch().
2017-05-17Fix code-style in autoreload_inotify.cBert Münnich
2017-05-17Simplify autoreload backend selection in MakefileBert Münnich
2017-05-17Revised autoreload interfaceBert Münnich
Make the header only contain the public interface and nothing from the implementation. All functions get a handle to their self object, like the img_ and tns_ and win_ functions. All necessary data (file path) is also passed as an argument, so that no extern redeclarations are needed. Make arl_setup_dir() private, it's not called outside the module. Make arl_handle() return true if the file has changed, so that the reloading of the file can be done by the caller.
2017-05-17Add autoreload support by inotify (and dummy backend nop)Max Voit
2017-05-17Properly quit when window gets closed; fixes issue #27Bert Münnich
2017-05-17State the purpose of CLEANUP macroBert Münnich
2017-02-15Merge branch 'diogocp/patch-1'Bert Münnich
2017-02-15Fix typoJakub Wilk
2017-02-13Fix missing quote in key-handler from commit 5c607adBert Münnich
2017-01-27Add Netpbm, TGA and XPM MIME types to sxiv.desktopDiogo Pereira
These formats are also supported by imlib2.
2017-01-07Pass given file names to key-handler instead of real pathsBert Münnich
Misbehaving command lines in the key-handler that rewrite the given files and thus replace symbolic links instead of their targets shall call realpath(1). Fixes issue #205 and reverts commit 92e3b578.
2016-12-28Fix unused-variable warnings in conditionally compiled codeBert Münnich
2016-12-28Merge vaygr/opt-depBert Münnich
2016-12-27Add build options for optional dependenciesVlad Glagolev
2016-12-01Merge djhejna/floatdelayBert Münnich
2016-11-30Ignore button and key events while key-handler is runningBert Münnich
Related to issue #253, which originally asked for a non-blocking key-handler.
2016-11-28Merge dwminer/framerateBert Münnich
2016-11-28Support for DELAY as a floating point number including less than 1Don Hejna
second while maintaining backward compatibiitiy with integer arguments.
2016-11-27Document -A optiondwminer
2016-11-27Add -A option to force framerate on animated imagesdwminer