aboutsummaryrefslogtreecommitdiffstats
path: root/window.c
AgeCommit message (Collapse)Author
2019-01-23Add Xresources capabilitynoamcore
2018-10-15Set window title only once at startupBert Münnich
Putting image info in the title predates the info bar; it no longer seems necessary. Fixes issue #318.
2018-04-11Initialize window bar buffers to empty stringBert Münnich
Fixes issue #308.
2017-12-07Simplify drawing of bar textBert Münnich
Non-fitting text is truncated by simply cutting it off. win_textwidth() has been replaced by a simple macro wrapper around win_draw_text() with a maximum width of zero, which results in a dry-run that still calculates the number of pixels used by the text, much like snprintf(3) with a buffer length of zero.
2017-12-07Replace utf8codepoint with Chris Wellons' utf8_decodeBert Münnich
Code under a different license should be kept in a separate file. This implemention is a single header file with ~65 lines, so it better fits this requirement.
2017-12-07win_textwidth is no longer needed outside window.cBert Münnich
2017-12-07Try to match a fallback font if neededSquibby
Fixes #276 Instead of rendering the entire filename at once, Xft will let us do it character by character. This will allow sxiv to query fontconfig for a font that can provide any missing codepoints, if needed. A known issue of this patch is that the "..." dots rendering will not work properly for very long multibyte filenames. That is because we cannot easily predict the final width of the rendered filename before drawing it. I couldn't figure out a clean way to deal with this, so I ended up just truncating the offending filenames.
2017-10-16One header file for type definitions and function declarationsBert Münnich
2017-10-06Improve mouse supportBert Münnich
None of the mouse mappings uses a keyboard modifier, making it possible to access the most basic features by only using the mouse. Next/previous image with left button depending on cursor position, middle button for dragging, right button for switching to thumnail mode and wheel for zooming. Users can keep the old behaviour by simply not adapting the changes to the buttons array in config.def.h to their config.h file.
2017-10-05Own win method for mouse cursor locationBert Münnich
2017-10-05Simplify cursor handlingBert Münnich
2017-10-04Mouse drag translates pointer position to image areaBert Münnich
This makes mouse panning more direct and faster.
2016-10-30Use -e for X window embeddingBert Münnich
2016-10-29added support for XEMBED into other windows (ie tabbed) with -wshuall
2016-08-06Use Xft for font loading and text drawingBert Münnich
2015-10-28Revised error handlingBert Münnich
- Functions warn() and die() replaced by GNU-like error(3) function - Register cleanup() with atexit(3) - Functions called by cleanup() are marked with CLEANUP and are not allowed to call exit(3)
2015-10-28Prefix safe allocation functions with 'e' instead of 's_'Bert Münnich
2015-10-28Removed feature test macro definitions from source filesBert Münnich
2015-10-28Removed overcautious parameter checksBert Münnich
2014-10-01Corrected & refactored handling of window bar content...Bert Münnich
Old snprintf calls could have overflowed the buffers.
2014-08-17Simplified thumbnail selection and marksBert Münnich
2014-07-28Overhauled window drawing, yet again; fixes issue #155Bert Münnich
- 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
2014-06-15Show key handler status in bar while it is runningBert Münnich
2014-04-21Do not center window on screen, workaround for issue #9Bert Münnich
2014-04-06Use a checkerboard background for alpha layer; fixes issue #138Bert Münnich
2014-02-05Removed command line option -FBert Münnich
2014-02-04Removed fit-win-to-img commandBert Münnich
2014-02-02Check if window manager supports fullscreen; related to issue #128Bert Münnich
2014-02-02Unified X atom initializationBert Münnich
2014-01-15Added window icons; fixes issue #125Bert Münnich
2013-04-14Use bgcol as window background pixel; fixed issue #89Bert Münnich
2013-04-06Fixed non-ASCII characters in window bar, issue #88Bert Münnich
2013-03-19Spawn info script & update bar contents only when neededBert Münnich
2013-03-19Spawn and read from info script without blockingBert Münnich
2013-02-09Merge branch 'sizehints', fixed issue #78Bert Münnich
2013-02-09No checks on window size, use whatever the user has specifiedBert Münnich
2013-02-09Correctly set window height after i_fit_to_img()Bert Münnich
2013-02-09Refined US{Position,Size} & WinGravity handlingBert Münnich
2013-02-09Merge remote-tracking branch '4z3/set-user-specified-sizehints' into sizehintsBert Münnich
Conflicts: window.c
2013-02-08Correctly updated window pixmap after i_fit_to_img()Bert Münnich
2013-02-08Refactored function definitions to use dangling braceBert Münnich
2013-02-08Updated/corrected license headerBert Münnich
2013-01-30When using -g hint the WM that we've got user specified geometrytv
Without this some window managers (e.g. fvwm) will ignore the initial window position and place it according to it's own rules.
2013-01-12Simplified status bar, filled by user scriptmuennich
2012-12-01Merge branch 'winname'Bert Münnich
2012-10-29Fixed BadDrawable errors caused by invalid window pixmapBert Münnich
2012-10-29Overhauled window drawingBert Münnich
- Draw onto pixmap as before, but use the same size for the pixmap as for the window, allocate new pixmap after configure requests - Use XCopyArea() instead of XSetWindowBackgroundPixmap(), which now requires handling of Expose events
2012-10-29New option: -N, set X window resource nameBert Münnich
2012-08-07Fixed WMProtocols registration order (before mapping window)Bert Münnich
2012-03-28Fixed issue #47Bert Münnich