summaryrefslogtreecommitdiffstats
path: root/main.c
AgeCommit message (Collapse)Author
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
2014-01-04Slideshow mode is back, in a simplified versionBert Münnich
2014-01-02Moved external shell commands into exec/key-handler scriptBert Münnich
Gets called on all unset key mappings. Arguments are: key combo and current file. Thanks to Francesco Orsenigo (xarvh) for the idea.
2014-01-02Proper support for Ctrl/Shift/Alt modifiers in key & mouse mappingsBert Münnich
2013-11-17Close info file descriptor after readingBastien Dejean
2013-11-16Fixed segfault when removing first image from file list, fixes issue #112Bert Münnich
2013-11-14Refactored remote changesBert Münnich
2013-11-14Merge remote-tracking branch 'ariand/gamma'Bert Münnich
2013-11-14Highlight edges of marked images in thumbnail modeBert Münnich
2013-11-13Add support for changing the gamma valueAndrás Mohari
2013-10-21Fixed inconsistencies in navigation when removing invalid filesBert Münnich
2013-08-10Added file marks; fixes issue #94Bert Münnich
- Command it_toggle_image_mark (bound to 'm') toggles mark of current image - Command it_navigate_marked (bound to 'N'/'P') can be used to go to the next/previous marked image - When option -o is given, all marked files get printed
2013-04-02Fixed segfault caused by FD_ISSET() on negative fdBert Münnich
Reported by Kris Siwiec
2013-03-19New options: -[io], read/write files from/to stdin/outBert Münnich
Fixes issue #84
2013-03-19Made bar fields more distinguishableBert Münnich