summaryrefslogtreecommitdiff
path: root/src/events.c
AgeCommit message (Collapse)AuthorLines
2021-11-13Add bindable button "0" for mouse movementDaniel Friesel-0/+11
Useful to make feh quit (or execute actions) on mouse movement Closes #568
2021-03-03Option Refactor and addition of Zoom Rate (#589)Alec C-2/+2
* fixed for simpler parenthesis matching * absolute file path for .fehbg, moved script creation into helper function * Removed unused variable. * added early exit condition as per Ferada's suggestion * Added enum for options to improve readability * migrated options to enum. * added support for zoom specification through options * added man entry for zoom-rate * added help entry for zoom-rate commands * updated man to have warnings about strange values for zoom options * fix memory leak (free exec_absolute_path) * added detection for path vs env PATH launch for use in .fehbg script gen. * Added enum for options to improve readability * migrated options to enum. * added support for zoom specification through options * added man entry for zoom-rate * added help entry for zoom-rate commands * updated man to have warnings about strange values for zoom options * Update help.raw removed zoom-in/out * removed zoom-in/out from options * updated man/help entry to remove in/out zoom specification * sanitize --zoom-rate in options parser; use a single variable for storing it Co-authored-by: Daniel Friesel <derf@finalrewind.org>
2020-04-11update copyrightDaniel Friesel-1/+1
2019-10-29events: guard against NULL returns from imlib callsBen Boeckel-17/+21
This can happen with images that have ridiculous dimensions.
2018-05-11Do not push menus off the screen when hitting screen limitsDaniel Friesel-0/+4
Closes #279
2018-05-11Update copyright noticeDaniel Friesel-1/+1
2017-09-24Replace keybinding struct with an array of named bindingsDaniel Friesel-56/+40
2017-01-12Pass windidget to feh_action_run, making it possible to use format specifiersANogin-1/+1
like %o and %z in slideshow actions (I would like to use this to zoom in, pan, and then use an action to crop the window to zoomed in view).
2016-08-28dedup key/button initializationDaniel Friesel-123/+3
2016-08-28merge next(_img), prev(_img) and (toggle_)menuDaniel Friesel-22/+16
2016-08-27Key actions can now also be bound to buttons. not vice versa, thoughDaniel Friesel-1/+134
2016-08-27preparations for unified key/button bindingsDaniel Friesel-46/+48
2016-05-27events/keyevents: zero cur_bb/cur_kb on each iterationDaniel Friesel-0/+1
previously, a button/key definition with an invalid action name would assign the specified key to the most recent valid action. E.g. "zoom_in 4\ninvalid 5" wuold assign button 5 to zoom_in.
2016-04-13fix image resize for w key and menu option (#229)Daniel Friesel-1/+1
2015-11-15events: also react to ConfigureNotify after mappingRichard Molitor-2/+1
2015-09-29also mark images as removed/processed when clicking on them in thumbnail ↵Daniel Friesel-2/+5
mode and --action is specifed
2014-05-22do not depend on HOME being setDaniel Friesel-4/+3
this introduces a bug in feh_wm_set_bg, which will be fixed in the next commit (only applies when run without HOME)
2013-11-25pointer warping: add TODO, change logic for north and west border.Daniel Friesel-4/+6
2013-11-24thumbnail mode: if --action is set, run it instead of opening imagesDaniel Friesel-2/+6
2013-11-20events.c: fix off-by-one pixel error when bottom/right border pointer warpingDaniel Friesel-9/+9
2013-02-12patch by sdaau: button bindings for zoom in / outDaniel Friesel-0/+60
2012-12-19treat quick, low-offset drags as clicks (closes #113)Daniel Friesel-2/+12
2012-02-12Revert "Merge --scale-down / window dimension change patch"Daniel Friesel-2/+0
This reverts commit b6a1cff6db874f4708d5ff5ea6a17248610b7d90.
2012-02-12Merge --scale-down / window dimension change patchDaniel Friesel-0/+2
2011-09-28Use buttons config instead of button optionsDaniel Friesel-21/+156
2011-09-28Set max/min zoom for both key and mouse zoomingDaniel Friesel-4/+4
2011-09-07feh_reload_image: Fix regression of old caching issue (closes #63)Daniel Friesel-1/+1
This was broken by the changes allowing --reload to retry ad infinitum. Now force_new is used to decide whether or not to work around the Imlib2 caching issue. Because of this, a few feh_reload_image calls needed to be changed.
2011-09-02events.c: Clean up winwid checks in ButtonPress/ButtonRelease handlersDaniel Friesel-92/+57
2011-09-01Revert "feh_reload_image: Always die if reload failed"Daniel Friesel-1/+1
This reverts commit 8b79bc33f37db12cbb672bdb47dcfeb0f2030bce.
2011-08-31feh_reload_image: Always die if reload failedDaniel Friesel-1/+1
This fixes a segfault in --reload when the image becomes unloadable while feh is running. Note that this does not affect --reload with more than one file: If the current image is removed, feh will simply jump to the next image. feh will only quit if the file still exists, but can no longer be loaded.
2011-08-16events.c: Fix recent fix for thumbnail window (closes #58)Daniel Friesel-2/+2
2011-08-11Disable blur/rotation in thumbnail viewerDaniel Friesel-0/+2
2011-08-11Show correct file number after deleting imageDaniel Friesel-3/+3
In the image_remove function, slideshow_change_image needs to be called before removing the image from the filelist. Because of this, the "x of y" displayed by --draw-filename is wrong (y is 1 too high). This commit introduces a new 'render' argument to slideshow_chingae_image. The image_remove function calls it with render=0, edits the filelist and then runs by winwidget_render_image itself. Patch by Yu-Jie Lin.
2011-05-02Use next/prev/render keys to select images in thumbnail mode (closes #26)Daniel Friesel-1/+1
2011-05-02Move last selected thumbnail from events.c to thumbmode_data (thumbnail.c)Daniel Friesel-8/+1
2011-05-01Move thumbnail code from events.c to thumbnail.cDaniel Friesel-44/+5
2011-04-27Remove "About feh" menu item & imageDaniel Friesel-50/+34
2011-03-21Add method to forcefully disable antialiasing (closes GH-17)Daniel Friesel-10/+10
2011-01-17Copyright FooDaniel Friesel-0/+1
2010-09-27Zoom button: Do 100% zoom upon release, not click.Daniel Friesel-5/+9
Fixes the annoying 100% zoom and then continuing where it was.
2010-07-17--debug-level → --debugDaniel Friesel-30/+30
2010-06-19Make <keypad /> and <keypad *> actually usefulDaniel Friesel-27/+1
2010-06-10Remove unused functions / function argumentsDaniel Friesel-7/+0
2010-06-10Remove D_ENTER/D_RETURN, use gdb tracepoints + readelf/awk magic insteadDaniel Friesel-23/+13
2010-06-06Thumbnail mode: Fix segfault when opening a deleted/renamed fileDaniel Friesel-1/+2
2010-05-30Fix blur modeDaniel Friesel-2/+7
The ButtonRelease check only knew pan mode, so releasing the blur key changed to the next image.
2010-05-03Rework menu.c & fix various compiler warnings (from menu_code) + update TODODaniel Friesel-1/+1
2010-04-22Fix zoom mode once and for all[tm]Daniel Friesel-15/+6
2010-04-22events.c: comment the pointer warpingDaniel Friesel-0/+4
2010-04-22Partially fix zoom modeDaniel Friesel-25/+28
Does not yet work with initial zoom value != 100%