summaryrefslogtreecommitdiff
path: root/src/winwidget.c
AgeCommit message (Collapse)AuthorLines
2017-12-07Disable automatic zoom adjustment of thumbnail windowsDaniel Friesel-4/+4
Closes #351
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
2016-08-31Only use sysconf() if HOST_NAME_MAX is undefinedNiclas Zeising-2/+15
On some systsems sysconf() can return a very large value, unsuitable for use with malloc(). Only use sysconf() if HOST_NAME_MAX isn't avalable.
2016-08-31Fix build on FreeBSD.Niclas Zeising-6/+12
FreeBSD lacks the constant HOST_NAME_MAX, instead using sysconf(3) to find out the value of the maximum host name length at run time. Patch to use this instead of HOST_NAME_MAX. This brings with it the need to use malloc instead of using a statically sized buffer for the host name, since the size of the buffer cannot be known at run time. Errors from sysconf or malloc just means that the entire block of code is skipped over (the same way it's skipped if the call to gethostname() fails), rather than returning any kind of error to the caller or logging an error message somewhere.
2016-08-28Only set _NET_WM_PID once, also set WM_CLIENT_MACHINEDaniel Friesel-6/+14
2016-08-27Add support for _NET_WM_PIDKlee Dienes-0/+6
2016-04-24winwidget_render_image: re-zoom image in scaledown/geometry mode after ↵Daniel Friesel-2/+11
ConfigureNotify event
2016-04-16bugfix and version bump (closes #230)2.15.2Daniel Friesel-1/+1
2016-04-14also respect w key in --geometry mode, update changelog and manualDaniel Friesel-1/+2
2016-04-13fix image resize for w key and menu option (#229)Daniel Friesel-4/+9
2015-11-15winwidget.c: never scale down thumbnail list windowDaniel Friesel-1/+3
this fixes a segfault when combining --scale-down and --thumbnails on a sufficiently large directory
2015-11-15zoom: implement scale-down without flickerRichard Molitor-25/+8
this actually uses the old "force geometry" workaround to get the scale down behaviour (which makes the code a lot cleaner) by first setting the geometry after the window is created (to avoid creating a 0x0 sized window, which X does not like).
2015-11-15events: also react to ConfigureNotify after mappingRichard Molitor-0/+10
2015-07-23use --xinerama-index instead of XINERAMA_INDEX to override xinerama screen ↵Daniel Friesel-2/+2
selection
2015-05-23winwidget: resize: only check scale_down when not in fullscreen mode (closes ↵Daniel Friesel-2/+2
#192)
2015-01-09Make --scale-down work with --geometry.Ilion Beyst-22/+33
2014-04-26respect --image-bg=checks in fullscreen mode (closes #156)Daniel Friesel-3/+11
2013-07-28initialize mwmhints to 0Brian Mattern-2/+2
2013-02-24comparing floats with == and != is bad indeed.Daniel Friesel-1/+1
2013-02-14Determine active Xinerama screen by pointer positionDaniel Friesel-6/+11
2012-10-23Do not apply --scale-down to a thumbnail window (#106)Daniel Friesel-1/+3
2012-03-29winwidget_allocate: memset winwid to zeroDaniel Friesel-0/+1
2012-02-12Revert "Merge --scale-down / window dimension change patch"Daniel Friesel-6/+1
This reverts commit b6a1cff6db874f4708d5ff5ea6a17248610b7d90.
2012-02-12Merge --scale-down / window dimension change patchDaniel Friesel-1/+6
2012-02-02Accept offset-only arguments for --geometry (closes #73)Daniel Friesel-4/+5
2012-01-27optional exif support (build with exif=1), initial patch importDaniel Friesel-0/+4
2011-10-31Experimental --auto-zoom tiling support (use -.Z for best results)Daniel Friesel-0/+6
2011-10-21winwidget.c: Add experimental --scale-down tiling support (#54)Daniel Friesel-0/+5
2011-09-13Use enum for opt.image_bg, rename --image-bg default to --image-bg checksDaniel Friesel-3/+3
2011-09-02winwidget.c: Simplify draw_checksDaniel Friesel-14/+3
2011-08-30winwidget.c: create_window: Remove useless use of ternary operatorDaniel Friesel-1/+1
2011-08-30winwidget.c: resize: Fix non-fulllscreen Xinerama issues on screens =! 1 ↵Daniel Friesel-22/+23
(see #5)
2011-08-29winwidget.c: resize: Respect max width/height set by Xinerama (see #5)Daniel Friesel-2/+12
This fixes half of the issue - windows on Xinerama screen 0 no longer become too large, but the bug still appears on the other screens (unless XINERAMA_SCREEN is set)
2011-07-20Make --image-bg white work in full-screen modeDaniel Friesel-1/+4
2011-06-07Add toggle_info key (closes #48)Daniel Friesel-2/+2
2011-06-06Respect --zoom 100 in --fullscreen mode (closes #47)Daniel Friesel-4/+6
2011-05-19Remove debug printf. Duh.Daniel Friesel-1/+0
2011-05-19Fix typing issue in winwidget_center_imageDaniel Friesel-2/+3
2011-05-10winwidget.c: Set _NET_WM_NAME and _NET_WM_ICON_NAME, marked as utf8 (closes #44)Daniel Friesel-1/+10
Note that feh does not try to convert encodings or anything. It expects filenames to be in UTF8 and passe them on to NET_WM_NAME and NET_WM_ICON NAME. The only new thing is that it now also sets _NET_WM_NAME and _NET_WM_ICON_NAME and explicitly tells X11 that they are in UTF-8. Again, no recode, if you use UTF-8 filesystems (which you should), everything is fine.
2011-05-03winwidget_resize: Fix typoDaniel Friesel-1/+1
2011-05-03winwidget_resize: Only use netwm-fullscreen patch for fullscreen windowsDaniel Friesel-1/+16
2011-05-03Back out 02_changeset_r52_netwm_full_screen.patch from Debian (closes #22)Daniel Friesel-14/+1
The only thing the patch seems to do is try to calculate the window borders so it can move the window to the right place. However, XResizeWindow simply does not move the window no matter how wide the borders are, which is the intended behaviour. Plus, certain window managers (like fluxbox) report an incorrect window border width. I have yet to test this commit on a Xinerama system, though. It _might_ affect something there.
2011-04-30Initial support for in-image warning display (closes #43)Daniel Friesel-0/+3
2011-04-27Remove "About feh" menu item & imageDaniel Friesel-9/+1
2011-03-22winwidget.c: Rename alias; update feh.t while at itDaniel Friesel-5/+7
2011-03-21Add method to forcefully disable antialiasing (closes GH-17)Daniel Friesel-8/+13