Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Simplify drawing of bar text | Bert Münnich | 2017-12-07 | 1 | -53/+34 |
| | | | | | | | | | 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. | ||||
* | Replace utf8codepoint with Chris Wellons' utf8_decode | Bert Münnich | 2017-12-07 | 1 | -5/+7 |
| | | | | | | 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. | ||||
* | win_textwidth is no longer needed outside window.c | Bert Münnich | 2017-12-07 | 1 | -11/+8 |
| | |||||
* | Try to match a fallback font if needed | Squibby | 2017-12-06 | 1 | -6/+41 |
| | | | | | | | | | | | | | | 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. | ||||
* | One header file for type definitions and function declarations | Bert Münnich | 2017-10-16 | 1 | -8/+5 |
| | |||||
* | Improve mouse support | Bert Münnich | 2017-10-06 | 1 | -1/+2 |
| | | | | | | | | | | | | 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. | ||||
* | Own win method for mouse cursor location | Bert Münnich | 2017-10-05 | 1 | -0/+11 |
| | |||||
* | Simplify cursor handling | Bert Münnich | 2017-10-05 | 1 | -29/+20 |
| | |||||
* | Mouse drag translates pointer position to image area | Bert Münnich | 2017-10-04 | 1 | -5/+5 |
| | | | | This makes mouse panning more direct and faster. | ||||
* | Use -e for X window embedding | Bert Münnich | 2016-10-30 | 1 | -5/+3 |
| | |||||
* | added support for XEMBED into other windows (ie tabbed) with -w | shuall | 2016-10-28 | 1 | -1/+5 |
| | |||||
* | Use Xft for font loading and text drawing | Bert Münnich | 2016-08-06 | 1 | -74/+32 |
| | |||||
* | Revised error handling | Bert Münnich | 2015-10-28 | 1 | -8/+8 |
| | | | | | | | - 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) | ||||
* | Prefix safe allocation functions with 'e' instead of 's_' | Bert Münnich | 2015-10-28 | 1 | -3/+3 |
| | |||||
* | Removed feature test macro definitions from source files | Bert Münnich | 2015-10-28 | 1 | -4/+3 |
| | |||||
* | Removed overcautious parameter checks | Bert Münnich | 2015-10-28 | 1 | -37/+0 |
| | |||||
* | Corrected & refactored handling of window bar content... | Bert Münnich | 2014-10-01 | 1 | -12/+20 |
| | | | | Old snprintf calls could have overflowed the buffers. | ||||
* | Simplified thumbnail selection and marks | Bert Münnich | 2014-08-17 | 1 | -5/+5 |
| | |||||
* | Overhauled window drawing, yet again; fixes issue #155 | Bert Münnich | 2014-07-28 | 1 | -52/+31 |
| | | | | | | | | - 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 | ||||
* | Show key handler status in bar while it is running | Bert Münnich | 2014-06-15 | 1 | -0/+2 |
| | |||||
* | Do not center window on screen, workaround for issue #9 | Bert Münnich | 2014-04-21 | 1 | -2/+2 |
| | |||||
* | Use a checkerboard background for alpha layer; fixes issue #138 | Bert Münnich | 2014-04-06 | 1 | -1/+0 |
| | |||||
* | Removed command line option -F | Bert Münnich | 2014-02-05 | 1 | -36/+17 |
| | |||||
* | Removed fit-win-to-img command | Bert Münnich | 2014-02-04 | 1 | -33/+0 |
| | |||||
* | Check if window manager supports fullscreen; related to issue #128 | Bert Münnich | 2014-02-02 | 1 | -0/+43 |
| | |||||
* | Unified X atom initialization | Bert Münnich | 2014-02-02 | 1 | -12/+17 |
| | |||||
* | Added window icons; fixes issue #125 | Bert Münnich | 2014-01-15 | 1 | -0/+25 |
| | |||||
* | Use bgcol as window background pixel; fixed issue #89 | Bert Münnich | 2013-04-14 | 1 | -1/+6 |
| | |||||
* | Fixed non-ASCII characters in window bar, issue #88 | Bert Münnich | 2013-04-06 | 1 | -9/+5 |
| | |||||
* | Spawn info script & update bar contents only when needed | Bert Münnich | 2013-03-19 | 1 | -2/+3 |
| | |||||
* | Spawn and read from info script without blocking | Bert Münnich | 2013-03-19 | 1 | -29/+30 |
| | |||||
* | Merge branch 'sizehints', fixed issue #78 | Bert Münnich | 2013-02-09 | 1 | -26/+47 |
|\ | |||||
| * | No checks on window size, use whatever the user has specified | Bert Münnich | 2013-02-09 | 1 | -14/+3 |
| | | |||||
| * | Refined US{Position,Size} & WinGravity handling | Bert Münnich | 2013-02-09 | 1 | -39/+39 |
| | | |||||
| * | Merge remote-tracking branch '4z3/set-user-specified-sizehints' into sizehints | Bert Münnich | 2013-02-09 | 1 | -18/+50 |
| |\ | | | | | | | | | | | | | Conflicts: window.c | ||||
| | * | When using -g hint the WM that we've got user specified geometry | tv | 2013-01-30 | 1 | -18/+50 |
| | | | | | | | | | | | | | | | Without this some window managers (e.g. fvwm) will ignore the initial window position and place it according to it's own rules. | ||||
* | | | Correctly set window height after i_fit_to_img() | Bert Münnich | 2013-02-09 | 1 | -0/+3 |
|/ / | |||||
* | | Correctly updated window pixmap after i_fit_to_img() | Bert Münnich | 2013-02-08 | 1 | -0/+5 |
| | | |||||
* | | Refactored function definitions to use dangling brace | Bert Münnich | 2013-02-08 | 1 | -18/+36 |
| | | |||||
* | | Updated/corrected license header | Bert Münnich | 2013-02-08 | 1 | -13/+13 |
|/ | |||||
* | Simplified status bar, filled by user script | muennich | 2013-01-12 | 1 | -69/+72 |
| | |||||
* | Merge branch 'winname' | Bert Münnich | 2012-12-01 | 1 | -1/+1 |
|\ | |||||
| * | New option: -N, set X window resource name | Bert Münnich | 2012-10-29 | 1 | -1/+1 |
| | | |||||
* | | Fixed BadDrawable errors caused by invalid window pixmap | Bert Münnich | 2012-10-29 | 1 | -6/+5 |
| | | |||||
* | | Overhauled window drawing | Bert Münnich | 2012-10-29 | 1 | -11/+28 |
|/ | | | | | | | - 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 | ||||
* | Fixed WMProtocols registration order (before mapping window) | Bert Münnich | 2012-08-07 | 1 | -3/+4 |
| | |||||
* | Fixed issue #47 | Bert Münnich | 2012-03-28 | 1 | -1/+1 |
| | |||||
* | Fixed issue #44 | Bert Münnich | 2012-03-16 | 1 | -1/+2 |
| | |||||
* | Fixed issue #41, added WIN_FS_COLOR to config.h | Bert Münnich | 2012-03-02 | 1 | -5/+4 |
| | |||||
* | Display full name in info bar, if there is enough space | Bert Münnich | 2012-02-21 | 1 | -12/+14 |
| |