summaryrefslogtreecommitdiff
path: root/src/main.c
AgeCommit message (Collapse)AuthorLines
2018-12-23There is no need to test ft against nullPavel Shlyak-1/+1
ft is already checked on line 153 so this condition is useless. Check https://github.com/derf/feh/issues/440 for more details
2018-11-05Remove deprecated option --menu-bgDaniel Friesel-1/+0
2018-11-04Merge branch 'remove-collage-mode' of https://github.com/Ferada/feh into ↵Daniel Friesel-2/+0
Ferada-remove-collage-mode
2018-10-17Use random() instead of rand() to increase portabilityDaniel Friesel-1/+1
Quoting glibc rand(3): The versions of rand() and srand() in the Linux C Library use the same random number generator as random(3) and srandom(3), so the lower-order bits should be as random as the higher-order bits. However, on older rand() implementations, and on current implementations on different systems, the lower-order bits are much less random than the higher-order bits. Do not use this function in applications intended to be portable when good randomness is needed. (Use random(3) instead.)
2018-10-02Actually remove collage mode after ~7 years.Olof-Joachim Frahm-2/+0
2018-07-17feh_main_iteration: Properly check select() return valueDaniel Friesel-2/+2
Trying to handle stdin when select() in fact returned an error due to being interrupted by a signal is a rather bad idea.
2018-07-06Update main.cgiladogit-4/+4
See issue #405
2018-05-11Update copyright noticeDaniel Friesel-1/+1
2018-03-10Only set random seed onceDaniel Friesel-0/+2
Fixes non-random behaviour when randomizing file lists several times per second. Closes #349
2017-10-02Fix segfault when running slideshow mode with !opt.displayDaniel Friesel-1/+4
Happens e.g. when using -O without enabling thumbnail/index mode Closes #335
2017-09-13Improve handling of lost terminalsDaniel Friesel-18/+2
When feh loses its controlling terminal at runtime, e.g. due to backgrounding / disowning, it will no longer issue a warning on each terminal keystroke.
2017-09-13Only restore terminal settings if stdin still belongs to us (closes #324)Daniel Friesel-1/+9
2017-08-29Handle detaching the controlling tty from a feh processDaniel Friesel-1/+1
2017-08-27Do not accept control from stdin when running in the backgroundDaniel Friesel-1/+11
2017-08-25Disable stdin control in multiwindow modeDaniel Friesel-1/+1
As there's no "default" window, it doesn't make much sense here... Plus, it's buggy as hell in this mode
2017-08-23Add terminal-input support for space and returnDaniel Friesel-2/+1
2017-08-23Put terminal into (mostly) raw mode when reading commands from stdinDaniel Friesel-4/+17
Also, restore the previous terminal mode on exit
2017-08-22Add experimental support for (remote) control via stdinDaniel Friesel-0/+17
2016-05-05src/main.c: switch spaces to tabs to clobber GCC warningDaniel Lockyer-2/+2
2016-05-02src/main.c: rebase master and fix segfault issueDaniel Lockyer-0/+3
2016-05-01src/main.c: free the malloc'ed sections of the optionsDaniel Lockyer-0/+3
2012-03-25set up signal handlers early enough (needed for filelist preloading, for ↵Daniel Friesel-1/+1
example)
2012-03-15--(un|)loadable: indicate results in exit codeDaniel Friesel-1/+1
2012-03-13Experimental code to limit imagemagick convert runtime (see #82)Daniel Friesel-0/+2
Problems so far: * leaks zombie processes * does not work when terminating feh with a signal (since the convert process is no longer in feh's process group)
2011-09-28Use buttons config instead of button optionsDaniel Friesel-0/+1
2011-09-26Add support for multiple files in --bg-options (closes #64)Daniel Friesel-1/+1
Squashed commit of the following: commit 55e66e15af898f4c01d7d265013124fefce795e4 Author: Daniel Friesel <derf@finalrewind.org> Date: Mon Sep 26 19:59:46 2011 +0200 Save all filenames in ~/.fehbg commit afc2774f315fc379aa96de58decf8370772036af Author: Daniel Friesel <derf@finalrewind.org> Date: Mon Sep 26 19:24:38 2011 +0200 Update test/bg --bg-fill images (off-by-one due to changed implementation) commit bd4210cff2e895414df12868f6cab7f193c5adf5 Author: Daniel Friesel <derf@finalrewind.org> Date: Mon Sep 26 14:47:00 2011 +0200 Fix feh_wm_set_bg_maxed commit d9ada9dc2a74aef6ae0924e9c0ff296b94ee25bc Author: Daniel Friesel <derf@finalrewind.org> Date: Mon Sep 26 14:39:11 2011 +0200 Fix for non-xinerama setups commit be2cf0f1f8c00b737e7141a372d3cbc9db4c949f Author: Daniel Friesel <derf@finalrewind.org> Date: Mon Sep 26 14:24:44 2011 +0200 Move wallpaper calculation code into separate functions commit 4e07c1f9734569fdd778a813c5a85c63b51b3175 Author: Daniel Friesel <derf@finalrewind.org> Date: Mon Sep 26 13:01:46 2011 +0200 Remove unnecessary temporary variable commit 23d1d733b21d1560e1fbcadddc34cae3d666b21d Author: Daniel Friesel <derf@finalrewind.org> Date: Mon Sep 26 12:46:25 2011 +0200 Initial conversion, works with --bg-scale
2011-09-03Rename support.c to wallpaper.cDaniel Friesel-1/+1
2011-01-17Copyright FooDaniel Friesel-0/+1
2011-01-13First step towards configurable key bindingsDaniel Friesel-1/+3
2010-07-17--debug-level → --debugDaniel Friesel-7/+7
2010-06-11debug.h: call_level is no longer relevant, pretty debug message formatDaniel Friesel-1/+0
2010-06-10Remove D_ENTER/D_RETURN, use gdb tracepoints + readelf/awk magic insteadDaniel Friesel-11/+7
2010-02-14Remove fmmode relictsDaniel Friesel-7/+0
2010-02-13Change source code indentation (indent -kr -i8 -hnl, mainly)Daniel Friesel-163/+147
2010-02-08Make -O work without X as well. Closes bugs.debian.org #373209Daniel Friesel-1/+3
2010-02-08make feh --list work without X.Daniel Friesel-1/+2
feh -O should also be able to run without it, but that requires slightly more work. I'll fix that one later, I guess. <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=373209>
2010-02-05Initial commit (upstream 1.3.4)Daniel Friesel-0/+219