aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeLines
...
| * term: fcft: max/space advance fields have been renamedDaniel Eklöf2020-04-23-2/+2
| |
| * meson: we now require fcft 2.0.xDaniel Eklöf2020-04-23-1/+1
| |
| * changelog: current output's subpixel order is preferred over FontConfigDaniel Eklöf2020-04-22-0/+6
| |
| * term: guess subpixel mode after initializing wayland windowDaniel Eklöf2020-04-22-0/+2
| | | | | | | | | | | | | | | | | | At this point, we're not mapped, but we should have all the outputs initialized. Which means we can at least guess which subpixel mode to use. If that turns out to be wrong, something we'll detect when we're mapped, we'll just have to re-render.
| * fcft: adjust to fcft-2.0 API changesDaniel Eklöf2020-04-21-48/+48
| | | | | | | | | | | | | | * font_*() -> fcft_*() * struct font -> struct fcft_font * struct glyph -> struct fcft_glyph * enum subpixel_order -> enum fcft_subpixel
| * Merge branch 'master' into fcft-v2Daniel Eklöf2020-04-21-0/+1
| |\ | |/ |/|
* | main: log localeDaniel Eklöf2020-04-21-0/+1
| |
| * render: use output's subpixel mode when rasterizing glyphsDaniel Eklöf2020-04-20-1/+79
|/
* completions: zsh: -f,--font accepts multiple, comma separated valuesDaniel Eklöf2020-04-20-1/+1
|
* readme: improve descriptionDaniel Eklöf2020-04-19-2/+3
|
* readme: bug reporting: emphasize that debug builds are preferred for backtracesDaniel Eklöf2020-04-19-1/+1
|
* readme: spell 'change' correctlyDaniel Eklöf2020-04-19-1/+1
|
* term: destroy: free scroll damage listsDaniel Eklöf2020-04-19-0/+3
| | | | | | | | | These lists are typically empty when we destroy the terminal. However, if we had queued up damage, and then manage to destroy the terminal instance before the last changes were rendered, then they will *not* be empty. Found by the address sanitizer.
* csi: fix typo - the '(' was in the wrong placeDaniel Eklöf2020-04-19-1/+1
|
* render: search: improve handling of very long search stringsDaniel Eklöf2020-04-19-4/+10
|
* csi: CSI Ps ; Ps ; Ps t: report logical pixelsDaniel Eklöf2020-04-18-5/+8
|
* shm: #ifdef conditional code to measure total size of SHM allocationsDaniel Eklöf2020-04-18-0/+20
|
* server: don't do misaligned loadsDaniel Eklöf2020-04-18-11/+23
|
* Merge branch 'csi-report'Daniel Eklöf2020-04-18-11/+96
|\
| * csi: implement CSI Ps ; Ps ; Ps t reporting escape sequencesDaniel Eklöf2020-04-18-11/+96
|/ | | | | | | | | | | | | | | | | | | | | | A lot of the escape sequences on the "CSI Ps ; Ps ; Ps t" form are expected to return a reply. Thus, not having these implemented means we will hang if the client sends these escapes. Not all of these escapes can be meaningfully implemented on Wayland, and thus this implementation is best effort. We now support the following escapes: * 11t - report if window is iconified (always replies "no") * 13t - report window position (always replies 0,0) * 13;2t - report text area position (replies with margins, since we cannot get the window's position) * 14t - report text area size, in pixels * 14;2t - report window size, in pixels * 15t - report screen size, in pixels * 16t - report cell size, in pixels * 18t - report text area size, in cells * 19t - report screen size, in cells
* changelog: selection is no longer cleared on resizeDaniel Eklöf2020-04-17-0/+1
|
* render: resize: no need to truncate selection anymore - it's being translatedDaniel Eklöf2020-04-17-7/+1
|
* render: resize: need to translate selection coordinatesDaniel Eklöf2020-04-17-2/+15
| | | | | | | | | | | | | While it *looked* like the selection was working before, it really wasn't. When rendering, we're looking at the cells' attributes to determine whether they have been selected or not. When copying text however, we use the terminal's 'selection' state, which consists of 'start' and 'end' coordinates. These need to be translated when reflowing text.
* grid: reflow: make tracking_points array 'const'Daniel Eklöf2020-04-17-2/+2
| | | | | The elements aren't, and cannot be, const. But the array itself can, and should be.
* Merge branch 'translate-cursor-coords-when-reflowing'Daniel Eklöf2020-04-17-195/+236
|\
| * render: resize: no need to clear the selection - just truncate if necessaryDaniel Eklöf2020-04-17-2/+6
| |
| * grid: reflow: caller may now pass a list of coordinates that should be translatedDaniel Eklöf2020-04-17-4/+11
| |
| * grid: reflow: generalize cursor coordinate translationDaniel Eklöf2020-04-17-26/+41
| | | | | | | | | | | | | | | | | | | | | | Define a list of "tracking points" - coordinates that should be translated while reflowing. Add the cursor coordinates to this list. When a coordinate have been translated, it is removed from the list. This means we don't have to create a copy of the 'cursor' coordinate struct.
| * changelog: cursor coordinates are now translated on resizeDaniel Eklöf2020-04-17-0/+1
| |
| * grid: reflow: remove commented out codeDaniel Eklöf2020-04-17-2/+0
| |
| * grid: reflow: turn line-wrapping code into a macroDaniel Eklöf2020-04-17-24/+19
| |
| * grid: reflow: don't randomly insert hard linebreaksDaniel Eklöf2020-04-17-0/+2
| | | | | | | | | | Not sure why I added this code; maybe to workaround issues caused by the fact that the cursor position wasn't properly translated.
| * grid: grid_reflow() now translates cursor coordinatesDaniel Eklöf2020-04-16-42/+54
| |
| * grid: move 'cursor' state from terminal to gridDaniel Eklöf2020-04-16-129/+136
|/ | | | | This way, the 'normal' and 'alt' grids have their own cursor state, and we don't need to switch between them.
* misc: replace all explicit zero-initializers with empty initializersDaniel Eklöf2020-04-13-15/+15
|
* mbstate: fix compile warning on systems where mbstate_t isn't an integralDaniel Eklöf2020-04-13-3/+3
| | | | | An empty initializer still ensures the entire object is zero-initialized.
* ci: alpine: add missing dependencies: pixman + libxkbcommonDaniel Eklöf2020-04-13-0/+2
|
* term: reset: plug memory leakDaniel Eklöf2020-04-13-27/+32
| | | | | | | | | | | In reset, we allocated new rows for all the currently visible lines. We did **not** however, free the 'old' rows. Fix by not explicitly allocating new rows, but instead allocating uninitialized rows when needed, and then explicitly erasing the row. If there already was a row allocated, it is simply erased. If there wasn't, the a new line is malloc:ed, and then erased.
* ci: initial FreeBSD build manifestDaniel Eklöf2020-04-12-0/+39
|
* ci: alpine: wlroots isn't needed (or used, at all)Daniel Eklöf2020-04-12-1/+0
|
* Fix clang warningsDaniel Eklöf2020-04-12-6/+6
| | | | | | | | All are printf() formatter related. Even if a variable is e.g. a 'short', when used in an expression like '<variable> - 1' it is promoted to an 'int'. Closes #16
* ci: move sr.ht's .build.yml to .builds/alpine.ymlDaniel Eklöf2020-04-11-0/+0
|
* themes: add a couple of color themesDaniel Eklöf2020-04-10-0/+141
| | | | | Foot doesn't really support themes, but with this, users can at least copy-paste from a couple of predefined themes into their footrc.
* input: slow trackpad scrolling now eventually scroll a lineDaniel Eklöf2020-04-10-1/+19
| | | | | | | | | | | | | | | Before, we converted each axis event's scroll amount to an integer and scrolled that many lines. However, axis events are speed sensitive - very slow scrolling will result in events with a scroll amount that is < 1.0. For us, this meant we never scrolled a single line. You could slow scroll all day if you wanted, and still we would never scroll a single line. Fix this by aggregating the scroll amount from axis events until the scroll amount is > 1.0, and then scroll.
* render: don't dim so much when in search modeDaniel Eklöf2020-04-10-3/+3
|
* render: strip 'pixman' from color function namesDaniel Eklöf2020-04-09-10/+10
|
* render: remove unused functionsDaniel Eklöf2020-04-09-18/+0
|
* config: use an unsigned constant, since we're shifting 31 bitsDaniel Eklöf2020-04-09-2/+2
|
* keymap: remove trailing whitespacesDaniel Eklöf2020-04-08-7/+7
|
* completions: zsh: foot: default geometry is 700x500, not 700x50Daniel Eklöf2020-04-08-1/+1
|
* changelog: alt+return now emits ESC \rDaniel Eklöf2020-04-08-0/+1
|
* keymap: return: all Alt+<mod> now emits \e\rDaniel Eklöf2020-04-08-2/+9
|
* keymap: \t -> spacesDaniel Eklöf2020-04-08-1/+1
|
* Merge branch 'mchackorg/foot-alt-return'Daniel Eklöf2020-04-08-0/+1
|\
| * Make Alt-Return send ESC ReturnMichael Cardell Widerkrantz2020-03-16-0/+1
| |
* | terminfo: foot: setaf/b: use colon-separated variantDaniel Eklöf2020-04-08-2/+2
| |
* | terminfo: foot-direct: setaf/b: set color space to '2' (RGB)Daniel Eklöf2020-04-08-2/+2
| |
* | README: describe how to report bugsDaniel Eklöf2020-04-04-0/+15
| |
* | doc: foot.1: list what a bug report should containDaniel Eklöf2020-04-04-0/+9
| |
* | doc: foot.1: add link to issue reportingDaniel Eklöf2020-04-04-0/+4
| |
* | readme: summary: add 'lightweight'Daniel Eklöf2020-04-04-1/+1
| |
* | readme: remove the 'non-features' and 'what doesn't work' sectionsDaniel Eklöf2020-04-04-22/+0
| |
* | meson: don't set -fno-stack-protectorDaniel Eklöf2020-04-04-2/+1
| | | | | | | | | | Disabling the stack protection is generally bad, and I can't measure any performance drops with it enabled.
* | Merge branch 'osc4-multi-parameter'Daniel Eklöf2020-04-04-47/+48
|\ \
| * | changelog: osc 4 multiple 'c;spec' pairsDaniel Eklöf2020-04-04-0/+1
| | |
| * | osc 104: handle multiple indices the same way we do in OSC 4 - use strtok()Daniel Eklöf2020-04-04-14/+13
| | |
| * | osc: 4: handle multiple idx;spec pairsDaniel Eklöf2020-04-04-33/+34
|/ /
* | readme: tweak presentation of OSC 555Daniel Eklöf2020-04-04-1/+1
| |
* | readme: markup of OSC sequencesDaniel Eklöf2020-04-04-13/+13
| |
* | readme: document implemented OSC sequencesDaniel Eklöf2020-04-04-0/+22
| |
* | Merge branch 'right-mouse-extend-selection'Daniel Eklöf2020-04-04-19/+189
|\ \
| * | doc: foot.1: right mouse button extends current selectionDaniel Eklöf2020-04-04-0/+3
| | |
| * | readme: right mouse button extends current selectionDaniel Eklöf2020-04-04-0/+3
| | |
| * | changelog: right mouse button extends current selectionDaniel Eklöf2020-04-04-0/+1
| | |
| * | selection: extend: new row must be offsetted with the current view offsetDaniel Eklöf2020-04-04-0/+2
| | |
| * | input: right mouse click extends the current selectionDaniel Eklöf2020-04-04-0/+4
| | |
| * | selection: add selection_extend()Daniel Eklöf2020-04-04-14/+172
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This function extends an existing selection in the following way: If the extension point is *before* the upper boundary of the current selection, extend the selection upwards. If the extension point is *after* the bottom boundary of the current selection, extend the selection downwards. If the extension point is *inside* the current selection, shrink the selection such that the new size is maximized. This means we move the *closest* start/end point from in the current selection.
| * | input: hardcoded left mouse button handler requires click-count <= 3Daniel Eklöf2020-04-04-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | This enables user mappings for the left mouse button with click count > 3 I.e. it is now possible to create custom quad-click mappings (except we don't yet support this in footrc).
| * | input: only cancel selection on left mouse button clicksDaniel Eklöf2020-04-04-4/+3
|/ /
* | changelog: mention memfd sealing failures not being fatal errors fixDaniel Eklöf2020-04-03-0/+1
| |
* | changelog: mention OSC 7 hostname validation fixDaniel Eklöf2020-04-03-0/+1
| |
* | osc: ignore OSC 7 when hostname doesn't match our own hostnameDaniel Eklöf2020-04-03-9/+28
| |
* | shm: memfd seal failures are not fatal errorsDaniel Eklöf2020-04-03-1/+1
| |
* | doc: foot/footclient: fix highlighting of TITLE argument to --titleDaniel Eklöf2020-04-01-2/+2
| |
* | conf: add 'title' conf option and --title command line optionDaniel Eklöf2020-04-01-2/+65
| |
* | completions: zsh: repair -a,--app-id completionsDaniel Eklöf2020-04-01-2/+2
| |
* | conf: add app-id config option and --app-id command line optionDaniel Eklöf2020-04-01-15/+84
| |
* | doc: foot.5: minor updates to 'tweaks'Daniel Eklöf2020-03-30-7/+9
| |
* | doc: fcft.5: document the 'tweak' optionsDaniel Eklöf2020-03-30-0/+117
| |
* | meson: completions: join_paths() all the wayDaniel Eklöf2020-03-29-1/+1
| |
* | Merge branch 'scroll-damage-performance'Daniel Eklöf2020-03-29-162/+796
|\ \
| * | changelog: mention renderer performance improvements with scrollingDaniel Eklöf2020-03-29-0/+2
| | |
| * | Merge branch 'master' into scroll-damage-performanceDaniel Eklöf2020-03-27-10/+138
| |\ \
| * | | conf: max-shm-pool-size-mb=0 now disables SHM scrollingDaniel Eklöf2020-03-26-7/+6
| | | |
| * | | shm: make max pool size user configurable (via a 'tweak' setting)Daniel Eklöf2020-03-25-11/+39
| | | |
| * | | shm: handle ftruncate failureDaniel Eklöf2020-03-25-1/+5
| | | |
| * | | shm: seal the memfdDaniel Eklöf2020-03-25-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | This both prevents accidental resizing of the memfd, and allows the Wayland server to optimze reads from the buffer - it no longer has to setup SIGBUS handlers.
| * | | shm: scroll: keep shm pool around, and fix its size at max allowedDaniel Eklöf2020-03-25-138/+149
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This lessens the burden on (primarily) the compositor, since we no longer tear down and re-create the SHM pool when scrolling. The SHM pool is setup once, and its size is fixed at the maximum allowed (512MB for now, 2GB would be possible). This also allows us to mmap() the memfd once. The exposed raw pointer is simply an offset from the memfd mmapping. Note that this means e.g. rouge rendering code will be able to write outside the buffer. Finally, only do this if the caller explicitly wants to enable scrolling. The memfd of other buffers are sized to the requested size.
| * | | app synchronized updates: set is_armed=false when enablingDaniel Eklöf2020-03-25-0/+1
| | | |
| * | | render: pace title updatesDaniel Eklöf2020-03-25-16/+34
| | | | | | | | | | | | | | | | Synchronize window title updates with window rendering.