| Commit message (Collapse) | Author | Age | Lines | ||
|---|---|---|---|---|---|
| ... | |||||
| | * | client: add -s,--server-socket command line option | Daniel Eklöf | 2019-12-14 | -16/+34 | |
| | | | | | | | | | | | This allows the user to override the default path (XDG_RUNTIME_DIR/foot.sock) we try to connect to. | ||||
| | * | main: allow server socket path to be set on the command line | Daniel Eklöf | 2019-12-14 | -3/+9 | |
| | | | | | | | | | | | This adds an optional argument to -s,--server that allows the user to override the default socket path (XDG_RUNTIME_DIR/foot.sock). | ||||
| | * | server: use socket-path from config | Daniel Eklöf | 2019-12-14 | -19/+2 | |
| | | | |||||
| | * | config: add 'server_socket_path' and set a default value | Daniel Eklöf | 2019-12-14 | -0/+16 | |
| |/ | |||||
| * | server: log socket packet | Daniel Eklöf | 2019-12-13 | -1/+3 | |
| | | |||||
| * | meson: we now require -lm | Daniel Eklöf | 2019-12-05 | -1/+3 | |
| | | |||||
| * | wayland: include more output (monitor) details in the log output | Daniel Eklöf | 2019-12-05 | -10/+26 | |
| | | |||||
| * | term: determine cell width from the width of the space character | Daniel Eklöf | 2019-12-05 | -1/+2 | |
| | | |||||
| * | config: trim leading spaces from fonts | Daniel Eklöf | 2019-12-05 | -2/+7 | |
| | | | | | | | | | When splitting the font configuration into multiple font specifications, we now trim leading spaces. This makes no actual difference; fontconfig matched the fonts just fine anyway, but this looks better in the logs. | ||||
| * | PKGBUILD: require fcft 0.4.x | Daniel Eklöf | 2019-12-05 | -1/+1 | |
| | | |||||
| * | meson: require fcft 0.4.x | Daniel Eklöf | 2019-12-05 | -1/+1 | |
| | | |||||
| * | fcft: update to 0.4.0 | Daniel Eklöf | 2019-12-05 | -0/+0 | |
| | | |||||
| * | term: test: set font DPI to the highest DPI we find | Daniel Eklöf | 2019-12-04 | -4/+17 | |
| | | | | | | | | | | | | In most cases (i.e. when there's only a single output/monitor), this will be *the* DPI value. In other cases, well... The _right_ thing to do is track the outputs our window is actually mapped on, and re-instantiate fonts depending on the current output's DPI. But that's for the future... | ||||
| * | main: stop initializing a default set of fonts | Daniel Eklöf | 2019-12-04 | -25/+0 | |
| | | |||||
| * | fcft: update to 0.3.5 | Daniel Eklöf | 2019-12-04 | -0/+0 | |
| | | |||||
| * | fcft: update to 0.3.4 | Daniel Eklöf | 2019-12-04 | -0/+0 | |
| | | |||||
| * | fcft: update to 0.3.3 | Daniel Eklöf | 2019-12-04 | -0/+0 | |
| | | |||||
| * | meson: we don't need -lm anymore | Daniel Eklöf | 2019-12-03 | -3/+0 | |
| | | |||||
| * | fcft: update to 0.3.2 | Daniel Eklöf | 2019-12-03 | -0/+0 | |
| | | |||||
| * | meson: we don't need -lm anymore | Daniel Eklöf | 2019-12-03 | -1/+1 | |
| | | |||||
| * | fcft: update to 0.3.0 | Daniel Eklöf | 2019-12-03 | -12/+6 | |
| | | | | | | fcft now calculates the underline and strikeout integer positions, making our rendering code much simpler. | ||||
| * | search: match_to_end_of_word: reset end_col when done with a row | Daniel Eklöf | 2019-12-03 | -0/+2 | |
| | | |||||
| * | search: match_to_end_of_word: bug: reset end-col when bumping end-row | Daniel Eklöf | 2019-12-03 | -1/+3 | |
| | | | | | | | | | When we calculate the end coords, we must reset end-col when we reach the end of the line and bump the end-row. This fixes an issue where bumping the row once lead to the end row being bumped for *each* remaining match character. | ||||
| * | search: bug: restore end-col/end-row adjustment | Daniel Eklöf | 2019-12-03 | -2/+4 | |
| | | | | | | Turns out end_col *can* be exactly 0. In this case, we need to adjust the end-row too. | ||||
| * | render: limit size of search surface to parent window | Daniel Eklöf | 2019-12-03 | -4/+2 | |
| | | | | | | | This shouldn't be necessary, but Sway acts up when the subsurface exceeds the parent surface (window, in this case) size, and extends the window size (if floating), leaving it with no content | ||||
| * | Merge branch 'scrollback-search-extend-to-end-of-word' | Daniel Eklöf | 2019-12-03 | -110/+228 | |
| |\ | |||||
| | * | search: bug: re-initialize start-row when attempting a new match | Daniel Eklöf | 2019-12-03 | -4/+4 | |
| | | | | | | | | | | | | | When we've already found a partial match (but *not* a complete match), and that match spanned multiple lines, then when we continued with the next start-column we re-used a know-wrong row pointer. | ||||
| | * | render: don't allow negative coordinates of the search surface | Daniel Eklöf | 2019-12-03 | -1/+2 | |
| | | | | | | | | | | | | | While the protocol allows this, it appears Sway offsets (moves) the parent surface when this happens, resulting in a window half without content. | ||||
| | * | search: map ctrl+shift+w to match to end of word, spaces only | Daniel Eklöf | 2019-12-03 | -4/+12 | |
| | | | | | | | | | | | This works just like ctrl+w, except that the only space separating characters are whitespaces. | ||||
| | * | search: search_match_to_end_of_word: rename start_{row,col} -> end_{row,col} | Daniel Eklöf | 2019-12-03 | -8/+10 | |
| | | | |||||
| | * | search: split up search_update() into two | Daniel Eklöf | 2019-12-03 | -68/+71 | |
| | | | | | | | | | | | | | | | | | | | * search_find_next() searches the scrollback, continuing from the last match. The assumption is that the search buffer has changed. * search_update_selection() updates the selection and moves the view to ensure the selection is visible. Note that it doesn't verify the selection actually matches the search buffer. | ||||
| | * | search: rename search_update() -> search_find_next() | Daniel Eklöf | 2019-12-03 | -3/+3 | |
| | | | |||||
| | * | README: describe ctrl+w while scrollback searching | Daniel Eklöf | 2019-12-03 | -0/+6 | |
| | | | |||||
| | * | search: map ctrl+w to 'extend current selection to end of word' | Daniel Eklöf | 2019-12-03 | -0/+75 | |
| | | | | | | | | | | | | | | | If the user has started a scrollback search and have some matching text, he can now press ctrl+w to extend that selection (and thus the search criteria too) to the end of the current word, or to the end of the next word if currently at a word separating character. | ||||
| | * | search: discard canceled compose sequences | Daniel Eklöf | 2019-12-03 | -0/+2 | |
| | | | |||||
| | * | Revert "search: discard canceled compose sequences" | Daniel Eklöf | 2019-12-03 | -4/+0 | |
| | | | | | | | | | This reverts commit f67733c0e3a4e4ba19e1c70bc36ee78af762868f. | ||||
| | * | search: discard canceled compose sequences | Daniel Eklöf | 2019-12-03 | -0/+4 | |
| | | | |||||
| | * | search: remove debug log | Daniel Eklöf | 2019-12-03 | -1/+0 | |
| | | | |||||
| | * | search: don't line-wrap unless we actually have a match on the next row | Daniel Eklöf | 2019-12-03 | -4/+6 | |
| | | | | | | | | | | | | | | | | | When matching characters, we moved on to next row directly after matching the last character in a row. This was wrong since if that last character was the last matching character, we tried to create a selection that was on the wrong row. | ||||
| | * | search: break out search buffer resize code to a new function | Daniel Eklöf | 2019-12-03 | -12/+21 | |
| | | | |||||
| | * | selection: break out isword() to a new file | Daniel Eklöf | 2019-12-03 | -21/+32 | |
| |/ | |||||
| * | input: discard canceled compose sequences | Daniel Eklöf | 2019-12-02 | -0/+2 | |
| | | |||||
| * | Merge branch 'fcft-0.2.0' | Daniel Eklöf | 2019-12-01 | -29/+26 | |
| |\ | |||||
| | * | PKGBUILD: tllist is only a make dependency, bump fcft to 0.2.0 | Daniel Eklöf | 2019-12-01 | -2/+2 | |
| | | | |||||
| | * | meson: require fcft 0.2.0 | Daniel Eklöf | 2019-12-01 | -1/+1 | |
| | | | |||||
| | * | fcft: fixup | Daniel Eklöf | 2019-12-01 | -0/+0 | |
| | | | |||||
| | * | Add missing includes | Daniel Eklöf | 2019-12-01 | -0/+3 | |
| | | | |||||
| | * | fcft: font_from_name() no longer accepts a tllist | Daniel Eklöf | 2019-12-01 | -26/+20 | |
| | | | |||||
| | * | fcft: bump to 0.2.0 | Daniel Eklöf | 2019-12-01 | -0/+0 | |
| |/ | |||||
| * | meson: fcft: version must be 0.1.x | Daniel Eklöf | 2019-12-01 | -1/+1 | |
| | | |||||
| * | fcft: bump | Daniel Eklöf | 2019-12-01 | -0/+0 | |
| | | |||||
| * | PKGBUILD/meson: add version requirements to tllist+fcft | Daniel Eklöf | 2019-12-01 | -4/+4 | |
| | | |||||
| * | fcft: bump | Daniel Eklöf | 2019-12-01 | -0/+0 | |
| | | |||||
| * | fcft: bump | Daniel Eklöf | 2019-12-01 | -0/+0 | |
| | | |||||
| * | PKGBUILD: don't allow subproject fallback | Daniel Eklöf | 2019-12-01 | -1/+1 | |
| | | |||||
| * | meson: tllist/fcft: use system dependency first, fallback to subprojects | Daniel Eklöf | 2019-12-01 | -14/+3 | |
| | | |||||
| * | meson/PKGBUILD: we no longer depend directly on fontconfig/freetype | Daniel Eklöf | 2019-12-01 | -8/+2 | |
| | | |||||
| * | PKGBUILD: strip extra git revision data from checked in PKGBUILD | Daniel Eklöf | 2019-12-01 | -1/+1 | |
| | | |||||
| * | fcft: include <fcft/fcft.h>, and use fcft/stride.h instead of local copy | Daniel Eklöf | 2019-12-01 | -13/+4 | |
| | | |||||
| * | README: add tllist and fcft to list of required libraries | Daniel Eklöf | 2019-12-01 | -0/+2 | |
| | | |||||
| * | PKGBUILD: add tllist and fcft dependencies | Daniel Eklöf | 2019-12-01 | -1/+2 | |
| | | |||||
| * | meson: tllist/fcft: oops, forgot to set 'required: false' | Daniel Eklöf | 2019-12-01 | -2/+2 | |
| | | |||||
| * | Merge branch 'use-fcft' | Daniel Eklöf | 2019-12-01 | -1510/+31 | |
| |\ | |||||
| | * | PKGBUILD: don't error out on missing profile data count files | Daniel Eklöf | 2019-12-01 | -5/+1 | |
| | | | |||||
| | * | fcft: use fcft instead of local copy of font.c/font.h | Daniel Eklöf | 2019-12-01 | -8/+22 | |
| | | | |||||
| | * | meson: tllist: try subproject first, then fallback to system dependency | Daniel Eklöf | 2019-12-01 | -1/+6 | |
| | | | |||||
| | * | tllist: add git submodule directly under subprojects | Daniel Eklöf | 2019-12-01 | -0/+3 | |
| | | | |||||
| | * | tllist: remove git submodule and local copy under subprojects | Daniel Eklöf | 2019-12-01 | -1497/+0 | |
| |/ | |||||
| * | font: log fontconfig/freetype version when debug logging has been enabled | Daniel Eklöf | 2019-12-01 | -0/+20 | |
| | | |||||
| * | Revert "font: ceil:ing the top value seems to look better when scaled" | Daniel Eklöf | 2019-12-01 | -1/+1 | |
| | | | | | This reverts commit 95d97b39734026e05f47b2064fe686da1ae40d20. | ||||
| * | font: ceil:ing the top value seems to look better when scaled | Daniel Eklöf | 2019-11-30 | -1/+1 | |
| | | |||||
| * | font: fix estimated underline thickness; descent is typically negative | Daniel Eklöf | 2019-11-30 | -1/+1 | |
| | | |||||
| * | term: mouse reporting functions no longer take modifier state | Daniel Eklöf | 2019-11-30 | -20/+26 | |
| | | | | | | | | | | | | | | | | | The mouse reporting functions are called from input when we receive Wayland mouse events. We used to pass the current keyboard modifier (shift, alt, ctrl, etc) to the terminal functions. This however is wrong, since we may receive Wayland mouse events without having keyboard focus. When we don't have keyboard focus, the modifier state doesn't apply to us. Remove the modifier arguments from the terminal mouse reporting functions. These functions now read this state directly instead, but only when the terminal instance in question has keyboard focus. | ||||
| * | term: add term_mouse_grabbed() | Daniel Eklöf | 2019-11-30 | -30/+17 | |
| | | | | | | | When this returns true, it means we have keyboard focus and are grabbing the mouse (for e.g. selections), regardless of whether the client has enabled mouse tracking or not. | ||||
| * | commands: scrollback: don't scrollback if mouse tracking is enabled | Daniel Eklöf | 2019-11-30 | -0/+3 | |
| | | |||||
| * | input: doh! mouse_scroll: first argument to keyboard_key() is a struct wayland | Daniel Eklöf | 2019-11-30 | -2/+2 | |
| | | | | | This is the problem with void* user data pointers in callbacks... | ||||
| * | commands: scrollback: don't scrollback if mouse tracking is enabled | Daniel Eklöf | 2019-11-30 | -0/+3 | |
| | | |||||
| * | input: mouse_scroll: cache XKB_KEY_Up and XKB_KEY_Down | Daniel Eklöf | 2019-11-30 | -2/+9 | |
| | | |||||
| * | term: "raw" mouse mode requires shift only to be pressed | Daniel Eklöf | 2019-11-30 | -3/+12 | |
| | | |||||
| * | render: fix underline/strikeout positioning | Daniel Eklöf | 2019-11-30 | -19/+21 | |
| | | | | | | | | | | | | | There were two errors: * We subtracted half the line width instead of adding it to the baseline * We rounded the line positioning and thickness before the positioning calculation. In particular, rounding the thickness before using it to adjust the position was wrong. Now we round just before the pixman call. | ||||
| * | render: font_baseline(): simply use the primary font's ascent | Daniel Eklöf | 2019-11-30 | -16/+4 | |
| | | | | | | | This is what we used as baseline for regular glyphs anyway. Thus, we can update that code to call font_baseline() now. This makes it easier to change how we define the baseline in the future. | ||||
| * | font: bug: bad multiplier when converting from 16.16 fixed float | Daniel Eklöf | 2019-11-30 | -1/+1 | |
| | | |||||
| * | term: define xcursor strings as global variables | Daniel Eklöf | 2019-11-30 | -3/+7 | |
| | | |||||
| * | font: cache_size -> glyph_cache_size | Daniel Eklöf | 2019-11-30 | -4/+4 | |
| | | | | | This makes it more clear it has nothing to do with the font cache. | ||||
| * | font: destructor: pop elements as we go | Daniel Eklöf | 2019-11-30 | -1/+1 | |
| | | | | | Otherwise we'll end up free:ing the same font over and over again. | ||||
| * | font: original -> requested | Daniel Eklöf | 2019-11-30 | -8/+8 | |
| | | |||||
| * | font: log freetype errors | Daniel Eklöf | 2019-11-30 | -3/+19 | |
| | | |||||
| * | wayland: track current xcursor, and don't update if same | Daniel Eklöf | 2019-11-30 | -0/+11 | |
| | | | | | | | | | | | | | | | | We may have many windows open, which tries to update/change the xcursor at various points. Track which cursor is currently loaded, regardless of which window it was set by. If someone tries to load that very same xcursor again, simply skip it. One example is when we've moused over a window that does *not* have keyboard focus, and then the user clicks, or by some other mean gives that window keyboard focus. In many cases it will then try to set the same cursor again (most of the times, the cursor is the same regardless of keyboard focus, but not always). | ||||
| * | input: update xcursor on terminal with *keyboard* focus when modifiers change | Daniel Eklöf | 2019-11-30 | -4/+2 | |
| | | |||||
| * | term: xcursor: use selection_enabled() | Daniel Eklöf | 2019-11-30 | -2/+1 | |
| | | | | | | | | | Instead of duplicating the code from selection_enabled() that deals with forced selection, just call selection_enabled(). This was previously not possible since selection_enabled() didn't require keyboard_focus. Now it does. | ||||
| * | selection: forced selection requires keyboard focus | Daniel Eklöf | 2019-11-30 | -1/+12 | |
| | | | | | | | | | | | Up the requirements for enabling "forced" selection (that is, allowing selections even though mouse tracking has been disabled). * Require keyboard focus (if we don't have it, then the shift-key isn't is for us) * Don't just require shift being pressed, but that all other modifiers are *not* pressed. | ||||
| * | vt: don't try to move cursor outside the terminal | Daniel Eklöf | 2019-11-29 | -7/+11 | |
| | | | | | | | | | | When we insert an auto-newline, we must make sure we don't try to move outside the terminal window. This can for example happen when a scrolling region have been configured, and the cursor is **outside** the scrolling region (i.e. it's in the bottom margin). | ||||
| * | term: reset: set 'origin' to ORIGIN_ABSOLUTE | Daniel Eklöf | 2019-11-29 | -0/+1 | |
| | | |||||
| * | font: never set glyph->cols to something that is less than 0 | Daniel Eklöf | 2019-11-29 | -1/+4 | |
| | | |||||
| * | vt: fix memory corruption: wcwidth() may return -1 | Daniel Eklöf | 2019-11-29 | -12/+14 | |
| | | | | | | When it did, we called print_insert() with that, which in turn resulted in a too large size value passed to memmove. | ||||
| * | csi/vt: don't bad client data as errors | Daniel Eklöf | 2019-11-29 | -2/+2 | |
| | | | | | This gets rid of spam when cat:ing binary data. | ||||
| * | vt: only define esc_as_string() when debug logging has been enabled | Daniel Eklöf | 2019-11-29 | -0/+2 | |
| | | |||||
| * | vt: disable logging BELL | Daniel Eklöf | 2019-11-29 | -2/+2 | |
| | | |||||
| * | csi/ocs/vt: log unhandled/unrecognized sequences as debug messages | Daniel Eklöf | 2019-11-29 | -4/+4 | |
| | | | | | | | | | Having them as error messages was nice when we where still missing lots of sequences. Now we don't anymore, and these just spam stdout as well as syslog when e.g. cat:ing binary data. | ||||
| * | vt: there are actually many state transitions that are no-ops | Daniel Eklöf | 2019-11-29 | -1/+0 | |
| | | | | | | | In most states, most 8-bit values are no-ops. This is already handled; action() recognizes ACTION_NONE as a no-op. Thus, all we need to do is remove the assertion. | ||||
