summaryrefslogtreecommitdiff
path: root/src/winwidget.c
AgeCommit message (Collapse)AuthorLines
2020-12-05free accompanying EXIF data when freeing an imageDaniel Friesel-1/+2
This fixes two memory bugs that only manifest with exif=1 and long-running slideshows. * when feh loads an image, it writes exif data to file->ed. Previously, this data was never free'd, causing a memory leak on subsequent loads of the same file. * As file->ed is never free'd, the accumulated EXIF data consumes a significant amount of memory over time. with slideshow-delay = 10 and two days of runtime, feh may exceed 1 GB of memory usage. If the slideshow is so large that feh does not encounter the same image twice in this time, this is not detected as a memory leak, as each EXIF data chunk is referenced from the filelist. See <https://github.com/derf/feh/issues/553> for details. Closes #553
2020-08-28Fix segfault when closing a window in multi-window reload modeDaniel Friesel-0/+4
Issue: * start feh --multiwindow --reload 5 * close a window with "x" * wait up to 5 seconds * segfault The issue was caused by the closed window's reload timer still being active even after the winwidget was free'd.
2020-04-11update copyrightDaniel Friesel-1/+1
2019-10-11Allow setting the X11 class hint as an option.Olof-Joachim Frahm-1/+1
2019-07-08Merge branch 'geometry' of https://github.com/CrackedP0t/feh into ↵Daniel Friesel-1/+8
CrackedP0t-geometry
2019-04-18inotify: Support files in current working directoryDaniel Friesel-0/+9
2019-04-18Gracefully handle inotify failuresDaniel Friesel-2/+2
2019-04-18print error string if an inotify operation failsDaniel Friesel-2/+2
2019-04-12Handle no-longer-valid files in inotify-based auto-reloadDaniel Friesel-1/+1
2019-04-01Merge remote-tracking branch 'original/master'Sven Willner-3/+0
2019-03-14Get geometry after mappingElaina Martineau-0/+2
2019-03-14Get actual geometry from Xlib after resizeElaina Martineau-1/+6
2019-02-11remove debug printf3.1.2Daniel Friesel-1/+0
2018-12-23Remove useless assignmentsPavel Shlyak-2/+0
It is a naive way of fixing it :) Needs attentive review
2018-09-13Merge branch 'master' of github.com:derf/fehSven Willner-177/+91
2018-09-13Inotify: watch parent directory instead of just fileSven Willner-12/+13
2018-08-19Antialias rotated images even at native resolutionulteq-1/+1
Partial fix of: #310
2018-07-17Improve screen clip featureulteq-6/+10
2018-06-27Merge branch 'simplify-zoom' of https://github.com/ulteq/feh into ↵Daniel Friesel-157/+56
ulteq-simplify-zoom
2018-05-11Update copyright noticeDaniel Friesel-1/+1
2018-05-11Show correct filelist position in windows opened from thumbnail modeDaniel Friesel-2/+0
Addresses part of issue #75
2018-03-10Adapt the new --offset optionulteq-16/+6
2018-03-10Simplify --keep-zoom-vp handlingulteq-6/+7
2018-03-10Fix indentationulteq-11/+10
2018-03-10Remove unused codeulteq-8/+0
2018-03-10Fix --screen-clip window dimension calculationulteq-2/+6
2018-03-10Fix window auto-resize with --keep-zoom-vp enabledulteq-1/+2
--keep-zoom-vp will no longer block the dynamic window resizing mechanism.
2018-03-10Remove duplicate bounds checkingulteq-6/+0
2018-03-10Run draw checks after zoom calculationulteq-8/+8
2018-03-10Fix draw checks conditionulteq-2/+3
2018-03-10Allow empty string as --geometry argumentulteq-1/+1
Passing an empty string to the --geometry option will enable fixed geometry mode without having to specify anything else
2018-03-10Fix zoom ratio calculationulteq-103/+20
This simplifies the logic behind the automatic zoom ratio calculation, which is used by both --auto-zoom and --scale-down.
2018-03-09rename --inner-geometry to --offset, discard width and height valuesDaniel Friesel-8/+8
2018-03-08add (experimental and still slightly buggy) --inner-geometry featureDaniel Friesel-0/+26
See #278
2018-02-27Merge branch 'custom-background-color' of https://github.com/ulteq/feh into ↵Daniel Friesel-12/+14
ulteq-custom-background-color
2018-02-14Only check image dimensions on the fly in multiwindow and slideshow modeDaniel Friesel-1/+1
This introduces a new feh_should_ignore_image function which is called at appropriate places in those modes to skip images which are loadable but undesired.
2018-01-24Simplify window title generationulteq-21/+8
2018-01-17Allow any XColor values as --image-bg argumentPaul O'Day-12/+14
2017-12-28Only calculate needed zoom when necessaryulteq-6/+4
This will prevent unnecessary calls to 'feh_calc_needed_zoom'
2017-12-27Utilize the imlib cache properlyulteq-1/+1
This prevents removing the image data from the cache, when moving back and forth between images. As suggested by the Imlib documentation: http://alien.cern.ch/cache/imlib2-1.0.6/doc/
2017-12-07Disable automatic zoom adjustment of thumbnail windowsDaniel Friesel-4/+4
Closes #351
2017-10-27fixed inotify for overwritten filesSven Willner-3/+10
2017-09-01changed option from inotify to auto-reloadSven Willner-1/+1
2017-09-01fixed inotify for thumbnail modeSven Willner-21/+29
2017-08-24added inotify supportSven Willner-1/+66
2017-02-26Also update window title for thumbnail windows (closes #280)Daniel Friesel-3/+8
2017-02-23Fix memory leak when closing images opened from thumbnail modeDaniel Friesel-0/+2
2017-02-16I made a derp2.18.2Daniel Friesel-1/+1
2017-01-11rewrite window title whenever the image is rendered (closes #266)Daniel Friesel-0/+6
2016-08-31winwidget: hostname always has a trailing null byte in the !HOST_NAME_MAX branchDaniel Friesel-1/+0