summaryrefslogtreecommitdiffstats
path: root/main.c
AgeCommit message (Collapse)Author
2015-10-28Revised error handlingBert Münnich
- Functions warn() and die() replaced by GNU-like error(3) function - Register cleanup() with atexit(3) - Functions called by cleanup() are marked with CLEANUP and are not allowed to call exit(3)
2015-10-28Prefix safe allocation functions with 'e' instead of 's_'Bert Münnich
2015-10-28Removed unnecessary buffer size constantsBert Münnich
2015-10-28Use XSI realpath(3)Bert Münnich
2015-10-28Use POSIX.1-2008 getline(3)Bert Münnich
2015-10-28Removed feature test macro definitions from source filesBert Münnich
2015-10-28Removed overcautious parameter checksBert Münnich
2015-08-19Always run image-info script after key-handler in image mode; fixes issue #213Bert Münnich
2015-01-18Pass real paths to key handler instead of the paths provided by the userBert Münnich
Programs called by the key handler might replace symlinks instead of their targets.
2015-01-04Cache out of view thumbnails in the backgroundBert Münnich
2015-01-04Use bit-field for boolean flags in fileinfo structBert Münnich
2014-12-01Ignore SIGPIPE, caused by key handler exiting before all files got printed, ↵Bert Münnich
fixes issue #188
2014-11-27Pass file paths to key handler via stdin; fixes issue #187Bert Münnich
2014-11-27Fixed leakage of pipe descriptors in case of failing forkBert Münnich
2014-10-24Do not print could-not-open-warnings for files found by directory traversalBert Münnich
2014-10-01Corrected & refactored handling of window bar content...Bert Münnich
Old snprintf calls could have overflowed the buffers.
2014-10-01Fixed segfault on image removal with uninitialized thumbnails; fixes issue #177Bert Münnich
2014-09-30Unified file count variable for image & thumbnail modeBert Münnich
2014-09-27Changed image mark in thumbnail view to small rectangleBert Münnich
2014-09-26Refactored main loop; properly fixes startup issueBert Münnich
2014-09-26Fixed startup in thumbnail mode with floating windowBert Münnich
2014-09-26Revised thumbnail loading...Bert Münnich
- Only load the thumbnails that are currently visible in the window - Unload thumbnails that are leaving the visible area - Much less memory needed, but scrolling is now slower - This also unintentionally fixes issue #86
2014-09-11Fixed segfault caused by image removal in thumbnail modeBert Münnich
2014-09-01Simplified img_frame_animateBert Münnich
2014-08-29Corrected i_alternate, fixes issue #171Bert Münnich
2014-08-22Bug #165: Deletion of unnecessary null pointer checksMarkus Elfring
The function "free" performs input parameter validation. http://pubs.opengroup.org/onlinepubs/9699919799/functions/free.html It is therefore not needed to check a passed pointer before this function call. A corresponding update suggestion was generated by the software "Coccinelle" from the following semantic patch approach. http://coccinelle.lip6.fr/ @Remove_unnecessary_pointer_checks1@ expression x; @@ -if (x != \(0 \| NULL\)) free(x); @Remove_unnecessary_pointer_checks2@ expression x; @@ -if (x != \(0 \| NULL\)) { free(x); x = \(0 \| NULL\); -} @Remove_unnecessary_pointer_checks3@ expression a, b; @@ -if (a != \(0 \| NULL\) && b != \(0 \| NULL\)) +if (a) free(b); @Remove_unnecessary_pointer_checks4@ expression a, b; @@ -if (a != \(0 \| NULL\) && b != \(0 \| NULL\)) { +if (a) { free(b); b = \(0 \| NULL\); } Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
2014-08-18Further simplified thumbnail marksBert Münnich
2014-08-17Full redraw when removing files during thumbnail reloading; fixes issue #164Bert Münnich
2014-08-16Fixed wrong thumbnail-to-file mappings caused by file deletionsBert Münnich
2014-08-16Pass marked files to external key handler in thumbnail mode; fixes issue #135Bert Münnich
2014-08-16Count number of marked filesBert Münnich
2014-08-16Unified file index variable for image & thumbnail modeBert Münnich
2014-08-16Generalized thumbnail loading, allows easier reloading of thumbnails later onBert Münnich
2014-07-28Overhauled window drawing, yet again; fixes issue #155Bert Münnich
- Buffer for window content is bigger than the window, minimizes artifacts when window is resized - Back to using XSetWindowBackgroundPixmap() instead of XCopyArea(), no need to handle exposure events; X server can show gray background directly after resize event before sxiv redraws the window contents
2014-07-23Added support for multiple commands per key/button mapping; elegant fix for ↵Bert Münnich
issue #150
2014-07-23Revised command structure and key and mouse button mappingsBert Münnich
2014-06-15Show key handler status in bar while it is runningBert Münnich
2014-05-24Timeout initial redrawMiroslav Koskar
2014-03-17Use real path of all files internally, requires _XOPEN_SOURCE>=500, fixes ↵Bert Münnich
issue #137
2014-02-18Warn once when external key combo is used and key-handler not installedBert Münnich
2014-02-02Unified X atom initializationBert Münnich
2014-01-31Merged pull request #129Bert Münnich
2014-01-31Use a prefix key to execute the key handlerAndrás Mohari
The default prefix key is C-x, and can be changed in config.def.h. The first key pressed after the prefix key will be passed the external key handler, unless the key is Escape, which is used to cancel the prefix.
2014-01-11Double click on thumbnail to open imageBert Münnich
2014-01-11Adhere to XDG Base Directory Specification; fixes issue #124Bert Münnich
2014-01-09Allow config.h to use multimedia keys (XF86_XK_*); fixes issue #123Bert Münnich
2014-01-08Fixed handling of overloaded key mappingsBert Münnich
Issue described here: https://bbs.archlinux.org/viewtopic.php?pid=1117294#p1117294
2014-01-08Fixup for 9574150Bert Münnich
2014-01-08Check file modification time after key handlerBert Münnich
2014-01-08Fixed slideshow delay corruption after GIF animationBert Münnich