aboutsummaryrefslogtreecommitdiff
path: root/main.c
Commit message (Collapse)AuthorAgeFilesLines
* Pass real paths to key handler instead of the paths provided by the userBert Münnich2015-01-181-1/+1
| | | | | Programs called by the key handler might replace symlinks instead of their targets.
* Cache out of view thumbnails in the backgroundBert Münnich2015-01-041-9/+15
|
* Use bit-field for boolean flags in fileinfo structBert Münnich2015-01-041-11/+14
|
* Ignore SIGPIPE, caused by key handler exiting before all files got printed, ↵Bert Münnich2014-12-011-0/+2
| | | | fixes issue #188
* Pass file paths to key handler via stdin; fixes issue #187Bert Münnich2014-11-271-37/+48
|
* Fixed leakage of pipe descriptors in case of failing forkBert Münnich2014-11-271-8/+10
|
* Do not print could-not-open-warnings for files found by directory traversalBert Münnich2014-10-241-7/+8
|
* Corrected & refactored handling of window bar content...Bert Münnich2014-10-011-27/+39
| | | | Old snprintf calls could have overflowed the buffers.
* Fixed segfault on image removal with uninitialized thumbnails; fixes issue #177Bert Münnich2014-10-011-5/+6
|
* Unified file count variable for image & thumbnail modeBert Münnich2014-09-301-10/+7
|
* Changed image mark in thumbnail view to small rectangleBert Münnich2014-09-271-1/+1
|
* Refactored main loop; properly fixes startup issueBert Münnich2014-09-261-32/+27
|
* Fixed startup in thumbnail mode with floating windowBert Münnich2014-09-261-3/+5
|
* Revised thumbnail loading...Bert Münnich2014-09-261-20/+13
| | | | | | | - 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
* Fixed segfault caused by image removal in thumbnail modeBert Münnich2014-09-111-1/+1
|
* Simplified img_frame_animateBert Münnich2014-09-011-1/+1
|
* Corrected i_alternate, fixes issue #171Bert Münnich2014-08-291-3/+5
|
* Bug #165: Deletion of unnecessary null pointer checksMarkus Elfring2014-08-221-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* Further simplified thumbnail marksBert Münnich2014-08-181-1/+1
|
* Full redraw when removing files during thumbnail reloading; fixes issue #164Bert Münnich2014-08-171-0/+2
|
* Fixed wrong thumbnail-to-file mappings caused by file deletionsBert Münnich2014-08-161-4/+4
|
* Pass marked files to external key handler in thumbnail mode; fixes issue #135Bert Münnich2014-08-161-32/+49
|
* Count number of marked filesBert Münnich2014-08-161-0/+4
|
* Unified file index variable for image & thumbnail modeBert Münnich2014-08-161-26/+22
|
* Generalized thumbnail loading, allows easier reloading of thumbnails later onBert Münnich2014-08-161-8/+11
|
* Overhauled window drawing, yet again; fixes issue #155Bert Münnich2014-07-281-7/+5
| | | | | | | | - 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
* Added support for multiple commands per key/button mapping; elegant fix for ↵Bert Münnich2014-07-231-4/+8
| | | | issue #150
* Revised command structure and key and mouse button mappingsBert Münnich2014-07-231-12/+6
|
* Show key handler status in bar while it is runningBert Münnich2014-06-151-7/+17
|
* Timeout initial redrawMiroslav Koskar2014-05-241-1/+1
|
* Use real path of all files internally, requires _XOPEN_SOURCE>=500, fixes ↵Bert Münnich2014-03-171-3/+15
| | | | issue #137
* Warn once when external key combo is used and key-handler not installedBert Münnich2014-02-181-4/+14
|
* Unified X atom initializationBert Münnich2014-02-021-1/+1
|
* Merged pull request #129Bert Münnich2014-01-311-10/+9
|\
| * Use a prefix key to execute the key handlerAndrás Mohari2014-01-311-2/+12
|/ | | | | | 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.
* Double click on thumbnail to open imageBert Münnich2014-01-111-6/+10
|
* Adhere to XDG Base Directory Specification; fixes issue #124Bert Münnich2014-01-111-28/+26
|
* Allow config.h to use multimedia keys (XF86_XK_*); fixes issue #123Bert Münnich2014-01-091-0/+1
|
* Fixed handling of overloaded key mappingsBert Münnich2014-01-081-8/+20
| | | | | Issue described here: https://bbs.archlinux.org/viewtopic.php?pid=1117294#p1117294
* Fixup for 9574150Bert Münnich2014-01-081-4/+6
|
* Check file modification time after key handlerBert Münnich2014-01-081-0/+10
|
* Fixed slideshow delay corruption after GIF animationBert Münnich2014-01-081-1/+2
|
* Slideshow mode is back, in a simplified versionBert Münnich2014-01-041-4/+23
|
* Moved external shell commands into exec/key-handler scriptBert Münnich2014-01-021-13/+77
| | | | | Gets called on all unset key mappings. Arguments are: key combo and current file. Thanks to Francesco Orsenigo (xarvh) for the idea.
* Proper support for Ctrl/Shift/Alt modifiers in key & mouse mappingsBert Münnich2014-01-021-15/+15
|
* Close info file descriptor after readingBastien Dejean2013-11-171-0/+1
|
* Fixed segfault when removing first image from file list, fixes issue #112Bert Münnich2013-11-161-2/+2
|
* Refactored remote changesBert Münnich2013-11-141-3/+4
|
* Merge remote-tracking branch 'ariand/gamma'Bert Münnich2013-11-141-0/+2
|\
| * Add support for changing the gamma valueAndrás Mohari2013-11-131-0/+2
| |