aboutsummaryrefslogtreecommitdiff
path: root/CHANGELOG.md (follow)
Commit message (Collapse)AuthorAgeLines
...
* sixel: place cursor on the last character row touched by the sixelDaniel Eklöf2024-03-18-0/+4
| | | | | | | | | | | | | | | | After emitting a sixel, place the cursor on the character row touched by the last sixel. The last sixel _may_ not be a multiple of 6 pixels, *if* the sixel had an explicit width/height set via raster attributes. This is an intended deviation from the DEC cursor placement algorithm, where the cursor is placed on the character row touched by the last sixel's *upper* pixel. The adjusted algorithm implemented here makes it much easier for applications to handle text-after-sixels, since they can now simply assume a single text newline is required to move the cursor to a character row not touched by the sixel.
* csi: indicate "permanently reset" for DECRQM queries of mode 67 (DECBKM)Craig Barnes2024-03-16-1/+3
| | | | | This allows dynamic querying for the equivalent of terminfo's "kbs" capability.
* sixel: initialize the color table to colors used by the VT340Daniel Eklöf2024-03-15-0/+4
|
* Add support for opening an existing PTYAlyssa Ross2024-03-14-0/+3
| | | | | | | | | | | | | | | | | Virtual machine monitor programs (e.g. QEMU, Cloud Hypervisor) expose guest consoles as PTYs. With this patch, foot can access these guest consoles. Usually, the program used for accessing these PTYs is screen, but screen is barely developed, doesn't support resizing, and has a bunch of other unrelated stuff going on. It would be nice to have a terminal emulator that properly supported opening an existing PTY. The VMM controls the master end of the PTY, so to the other end (in this case foot), it just behaves like any application running in a directly-opened PTY, and all that's needed is to change foot's code to support opening an existing PTY rather than creating one. Co-authored-by: tanto <tanto@ccc.ac>
* csi: the CSI-t family of queries now report unscaled pixel valuesDaniel Eklöf2024-03-14-0/+3
| | | | | | | | | | | Before this patch, we reported scaled pixel values. This was rather useless, since applications have no way of getting the scaling factor, to "scale up" e.g. images. Furthermore, the most common use of these queries are probably to calculate the dimensions to use when emitting sixels. Closes #1643
* changelog: rectangular functions: add bug refDaniel Eklöf2024-03-07-1/+2
|
* changeloge: move DECERA to the 'unreleased' sectionDaniel Eklöf2024-03-07-4/+3
|
* foot.info: add non-standard capability ‘Rect’ (used by tmux)Daniel Eklöf2024-03-07-0/+1
| | | | This tells tmux it can use DECFRA to erase rectangular regions.
* changelog: rectangular edit functionsDaniel Eklöf2024-03-07-0/+3
|
* sixel: fix row height calculation in resize_vertically()Daniel Eklöf2024-03-06-0/+2
| | | | | | | | | In resize_vertically(), we assumed a sixel is 6 pixels tall. This is mostly true, but not for non-1:1 sixels. Or, to be more precise, not for sixels where 'pan' != 1. This caused us to allocate too little backing memory, resulting in a crash when we later tried to write to the image.
* kitty kbd: switch from GTK to XKB mode for 'consumed' modifiersDaniel Eklöf2024-03-02-0/+7
| | | | | | | | | | | This fixes an issue where some key combinations resulted in different output (e.g. escape code vs. plain text) depending on the state of e.g. the NumLock key. One such example is Shift+space. Another example is Shift+BackSpace. This patch also removes the hardcoded CapsLock filter, when determining whether a key combo produces text or not, and instead uses the locked modifiers as reported by XKB.
* cursor-shape: improve xcursor fallback support, and prefer CSS namesDaniel Eklöf2024-03-01-0/+1
| | | | | | | | | | | | | | Before this patch, we used legacy X11 xcursor names, and didn't really have any fallback handling in place (we only tried to fallback to "xterm", regardless of which cursor shape we were trying to load). This patch changes two things: 1. Improved fallback support. cursor_shape_to_string() now returns a list of strings. This allows us to have per-shape fallbacks, and any number of fallbacks. 2. We prefer CSS xcursor names over legacy X11 names.
* render: don't try to set a NULL xcursor imageDaniel Eklöf2024-02-29-0/+2
| | | | | | | | | | | | | | | | | | | render_xcursor_update() is called when we've loaded a new xcursor image, and needs to display it. The reason it's not pushed to the compositor immediately is to ensure we don't flood the Wayland socket with xcursor updates. Normally, it's only called when we *succeed* to load a new xcursor image. I.e. if we try to load a non-existing xcursor image, we never schedule an update. However, we _can_ still end up in render_xcursor_update() without a valid xcursor image. For example, we have loaded a valid xcursor image, and scheduled an update. But before the update runs, the user moves the cursor, and we try to load a new xcursor image. If it fails, we crash when the previously scheduled update finally runs. Closes #1624
* changelog: kitty modifier no longer clears selection + viewportDaniel Eklöf2024-02-23-0/+2
|
* shm: use XRGB surfaces when we know we wont be using transparencyDaniel Eklöf2024-02-21-0/+2
|
* vt: VS16 - variation selector 16 (emoji representation) should only affect emojisDaniel Eklöf2024-02-15-0/+2
|
* config: map Control+wheel to font increase/decreaseDaniel Eklöf2024-02-15-0/+3
| | | | | | This is in addition to the already existing keyboard shortcuts. Also add missing default keyboard/mouse bindings to readme + foot(1).
* term: erase-scrollback: handle non-existing scrollback historyDaniel Eklöf2024-02-15-0/+5
| | | | | | | | | | | | If scrollback.lines == 0, and the window size (number of rows) is a power of two, all rows are always visible. I.e. there is no scrollback history. This threw off the scrollback erase logic, causing visible rows to be erased, and set to NULL. This triggered a crash when trying to update the view. Closes #1610
* render: always center grid when fullscreened or maximizedDaniel Eklöf2024-02-15-0/+2
|
* csi: support DECRQM queries for ECMA-48 (SM/RM) modesCraig Barnes2024-02-11-0/+1
| | | | | This is in addition to the existing support for DECRQM queries of DEC private modes.
* changelog: OSC-176 - set app-idDaniel Eklöf2024-02-06-0/+2
|
* term: ignore attempts to set a title that contains an invalid UTF-8 sequenceDaniel Eklöf2024-02-06-0/+3
| | | | | | | | | | Setting the title ultimately leads to a call to xdg_toplevel::set_title(). It is a protocol violation to try to set a title that contains an invalid UTF-8 sequence: The string must be encoded in UTF-8. Closes #1552
* changelog: smm+rmmDaniel Eklöf2024-02-06-0/+4
|
* Don't use fancy Unicode quotes, stick to ASCIIDaniel Eklöf2024-02-06-49/+49
|
* changelog: pipe-command-outputDaniel Eklöf2024-02-06-0/+1
|
* changelog: custom modifiers in key bindingsDaniel Eklöf2024-02-06-0/+4
|
* feature: add resize-by-cells option to constrain window sizes...Andrew J. Hesford2024-02-05-0/+4
| | | | | ...to multiples of the cell size, and preserve grid size when changing fonts or display scales in floating windows.
* input: kitty: update to latest version of the specDaniel Eklöf2024-01-24-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Starting with kitty 0.32.0, the modifier bits during modifier key events behave differently, compared to before. Or, rather, they have now been spec:ed; before, behavior was different on e.g. MacOS, and Linux. The new behavior is this: On key press, the modifier bits in the kitty key event *includes* the pressed modifier key. On key release, the modifier bits in the kitty key event does *not* include the released modifier key. In other words, The modifier bits reflects the state *after* the key event. This is the exact opposite of what foot did before this patch. The patch is really pretty small: in order to include the key in the modifier set, we simulate a key press to update the XKB state, using xkb_state_uppate_key(). For key pressed, we simulate an XKB_KEY_DOWN event, and for key releases we simulate an XKB_KEY_UP event. Then we re-retrieve the modifers, both the full set, and the consumed set. Closes #1561
* slave: don't skip setting environment variables when using a custom environmentDaniel Eklöf2024-01-11-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When launching footclient with -E,--client-environment the environment variables that should be set by foot, wasn't. Those variables are: * TERM * COLORTERM * PWD * SHELL and all variables defined by the user in the [environment] section in foot.ini. In the same way, we did not *unset* TERM_PROGRAM and TERM_PROGRAM_VERSION. This patch fixes it by "cloning" the custom environment, making it mutable, and then adding/removing the variables above from it. Instead of calling setenv()/unsetenv() directly, we add the wrapper functions add_to_env() and del_from_env(). When *not* using a custom environment, they simply call setenv()/unsetenv(). When we *are* using a custom environment, add_to_env() first loops all existing variables, looking for a match. If a match is found, it's updated with the new value. If it's not found, a new entry is added. del_from_env() loops all entries, and removes it when a match is found. If no match is found, nothing is done. The mutable environment is allocated on the heap, but never free:d. We don't need to free it, since it's only allocated after forking, in the child process. Closes #1568
* config: fix cloning of env_vars tllistDaniel Eklöf2024-01-10-0/+2
| | | | | | | | | When cloning a config struct, the env_vars tllist wasn't correctly copied. We did correctly iterate and duplicate all old entries, but we did *not* reset the list in the cloned struct before doing so. This meant the list contained entries shared with the original list, causing double free:s in --server mode.
* wayland: surface_scale_explicit_width_height(): dont assert width/height are valid for scale, take 2Daniel Eklöf2024-01-09-0/+4
| | | | | | | | | | | | | | | | | | | | | | | 764248bb0d846f65c20931024c1f4adca57aae29 modified wayl_surface_scale_explicit_width_height() to not assert the surface size is valid for the given scaling factor. This, since that function is only used when scaling a mouse pointer surface. However, that commit only updated the code path run when fractional scaling is available (i.e. when the compositor implements the fractional-scale-v1 protocol). The legacy code path, that does integer scaling, was still asserting the surface width/height were divisible with the scaling factor. For the same reasons this isn't true with fractional scaling available, it's not true with integer scaling. Fix by skipping the assertions. This patch also converts the assertions to more verbose BUG() calls, that prints more information on the numbers involved. Closes #1573
* slave: chdir to / after spawning the client applicationDaniel Eklöf2024-01-03-0/+5
| | | | | | | | | | | With this patch, the terminal process now changes PWD to / after spawning the client application. This ensures the terminal process itself does not "lock" a directory. For example, we may keep a mount point from being unmounted. Closes #1528
* changelog: formattingDaniel Eklöf2024-01-03-1/+3
|
* support numpad in unicode modeSivecano2024-01-03-0/+3
|
* changelog: double close config file descriptorDaniel Eklöf2023-10-27-0/+4
|
* config: improve validation of color values, default alpha to 0xffDaniel Eklöf2023-10-26-0/+12
| | | | | | | | | | | | Reject color values that aren't in either RGB, or ARGB format. That is, color values that aren't hexadecimal numbers with either 6 or 8 digits. Also, if a color value is allowed to have an alpha component, and the user left it out, default to 0xff (opaque) rather than 0x00 (fully transparent). Closes #1526
* changelog: add new 'unreleased' sectionDaniel Eklöf2023-10-17-0/+12
|
* changelog: prepare for 1.16.2Daniel Eklöf2023-10-17-10/+3
|
* render: sixel: regression: wrong cell color behind opaque sixelsDaniel Eklöf2023-10-13-0/+7
| | | | | | | | | | | | | | An opaque sixel that isn't a multiple of the cell size will have some cells partially visible (either the entire last row, the entire last column, or both). These must be rendered before blitting the sixel. f5f2f5a954ee6cf3532a6aba023860ada183d486 introduced a regression, where all such cells were rendered as if the cursor was there, giving them the wrong appearance. Closes #1520
* changelog: add new 'unreleased' sectionDaniel Eklöf2023-10-12-0/+10
|
* changelog: prepare for 1.16.1Daniel Eklöf2023-10-12-10/+3
|
* render: fix surface damage when rendering sixels.Daniel Eklöf2023-10-12-0/+3
| | | | | | | | | | Pass a damage region to render_row()/render_cell() when rendering partially visible cells underneath a sixel. This ensures the affected regions are later reported as 'damaged' to the Wayland compositor. Closes #1515
* shm: memfd_create: fallback to not using MFD_NOEXEC_SEALDaniel Eklöf2023-10-12-0/+5
| | | | | | | | | | | | | | | | MFD_NOEXEC_SEAL was introduced in linux 6.3. Kernels before that will *reject* memfd_create() calls that set it. This caused foot to exit (i.e. not start at all), when compiled on linux >= 6.3, but run on linux < 6.3. We _do_ want to use MFD_NOEXEC_SEAL, since a) our memory mapped really shouldn't be executable, and b) to silence a warning on linux >= 6.3. To handle all cases, first try *with* MFD_NOEXEC_SEAL. If that fails with EINVAL, retry *without* it. Closes #1514
* changelog: fix link to issue 1077Daniel Eklöf2023-10-11-1/+1
|
* changelog: add new 'unreleased' sectionDaniel Eklöf2023-10-11-0/+11
|
* changelog: prepare for 1.16.0Daniel Eklöf2023-10-11-5/+11
|
* changelog: emphasize the new key bindings are for search modeDaniel Eklöf2023-10-11-1/+1
|
* changelog: fixed font baseline calculationDaniel Eklöf2023-10-10-0/+2
|
* changelog: fix issue number for visual bellDaniel Eklöf2023-10-10-2/+2
| | | | 1508 refers to the pull request, not the feature request.
* Enable the use of flash as visual bellRaimund Sacherer2023-10-10-0/+3
| | | | | | With this patch we can configure flash in the bell section. The colors section allow now to configure the color and translucency of the flash.
* render: more fine-grained wayland surface damage trackingDaniel Eklöf2023-10-10-0/+3
| | | | | | | | | Before this patch. Wayland surface damage tracking was done on a per-row basis. That is, even if just one cell was updated, the entire row was "damaged". Now, damage is per cell. This hopefully results in lower latencies in many use cases, and especially on high DPI monitors.
* changelog: add the remaining scrollback-up/down bindingsDaniel Eklöf2023-10-08-1/+5
|
* search: add more key bindings to extend the current matchDaniel Eklöf2023-10-08-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds the following new search key bindings: * extend-char (shift+right) * extend-line-down (shift+down) * extend-backward-char (shift+left) * extend-backward-to-word-boundary (ctrl+shift+left) * extend-backward-to-next-whitespace (ctrl+shift+alt+left) * extend-line-up (shift+up) They can be used to extend the search match (i.e. the selection). This patch also adds an initial set of key bindings to scroll in the scrollback history: * scrollback-up-page * scrollback-down-page These work just like the key bindings for the normal mode. Also note that it was already possible to scroll using the mouse. This patch also fixes a couple of search mode bugs: * crashing when a search match ends in the last column * grapheme clusters not being matched correctly * Search match not being "extendable" after a pointer leave event * A few others, related to either large matches, or extending matches after moving the viewport. There are still a couple of (known) issues: * A search match isn't correctly highlighted if its *starting* point is outside the viewport. * Extending the match to end of the scrollback (i.e. the most recent output) is simply buggy. Related to #419
* render: disable transparency in margins when in fullscreenDaniel Eklöf2023-10-07-0/+3
| | | | | | | This amends 899b768b744c74e88e54e6d8eb32f53accea79d8, where we started disabling transparency in fullscreen Closes #1503
* Codespell fixesDaniel Eklöf2023-10-03-3/+3
|
* term: get_font_dpi(): don't crash when there aren't any available monitorsDaniel Eklöf2023-10-01-0/+4
| | | | | | | | | | | | | Seen on plasma; monitor is turned off, and then back on again. Before the "new" output global is emitted, the compositor calls fractional_scale::preferred_scale(). This results in a call to get_font_dpi(), where we crash, since it assumes there is at least one monitor available. Fix by falling back to a DPI of 96. Hopefully closes #1498
* config: apply overrides even if there's no fileAlyssa Ross2023-09-25-0/+4
| | | | | | | | | Previously, foot -a test wouldn't actually set the app ID if there was no config file and the defaults were used, which was very counterintuitive. Now, load_config() will carry on until the end, even if there's no config file, so overrides still work.
* csi: implement DECSET/DECRST/DECRQM 2027 - grapheme cluster processingDaniel Eklöf2023-09-25-0/+2
| | | | | | | | | | | This implements private mode 2027 - grapheme cluster processing, as defined in the "Terminal Unicode Core"[1] specification. Internally, we just flip the already existing option "grapheme shaping". Since it's now runtime changeable, we need a copy of it in the terminal struct, rather than referencing the conf object. [1]: https://github.com/contour-terminal/terminal-unicode-core/blob/13fc5a8993a033ff10c1f3433d08cb618cde4ac2/spec/terminal-unicode-core.tex#L50-L53
* dcs: xtgettcap: ignore queries with invalid hex encodingsDaniel Eklöf2023-09-25-0/+2
| | | | | | | | When we receive an XTGETTCAP query, where the capability is not correctly hex encoded, ignore it. Before this patch, we echo:ed it back to the TTY inside an error resonse.
* url-mode: don't strip the file:// prefix from localhost URIsDaniel Eklöf2023-09-21-0/+3
| | | | | | | | | | | | | | | | | Before this patch, the file://<host> prefix was stripped from URIs, when the hostname matched the current host (that is, for "local" URLs). Unfortunately, the way this was done caused other parts of the URI to be stripped as well. For example, the 'query' and 'fragment' parts. This patch simply removes all special casing of file:// URIs. Since the URL is passed to a generic opener (i.e. we don't have a special opener application for file:// URIs), the opener helper must handle the file:// prefix anyway. Closes #1474
* changelog: crash when xdg token is set, but compositor does not support activationDaniel Eklöf2023-09-21-0/+3
|
* selection: add support for selecting the contents of a quoteDaniel Eklöf2023-09-19-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | This patch changes the default of triple clicking, from selecting the current logical row, to first trying to select the contents of the quote under the cursor, and if failing to find a quote, selecting the current row (like before). This is implemented by adding a new key binding, 'select-quote'. It will search for surrounding quote characters, and if one is found on each side of the cursor, the quote is selected. If not, the entire row is selected instead. Subsequent selection operations will behave as if the selection is either a word selection (a quote was found), or a row selection (no quote found). Escaped quote characters are not supported: "foo \" bar" will match 'foo \', and not 'foo " bar'. Mismatched quotes are not custom handled. They will simply not match. Nested quotes ("123 'abc def' 456") are supported. Closes #1364
* input: make wheel events mappableDaniel Eklöf2023-09-18-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Un-grabbed wheel events are now passed through the mouse binding matching logic, instead of being hardcoded to scrolling the terminal contents. They are mappable through the BTN_BACK and BTN_FORWARD buttons. Since they're not actually button *presses*, they never generate a click count other than 1. This limitation is documented, but not checked in the config. This means it's possible to create bindings like "BTN_BACK+3" (i.e. triple "click"). They will however never trigger. The old, hardcoded logic is now accessible through the new scrollback-up-mouse and scrollback-down-mouse mouse bindings. They (obiously) default to BTN_BACK and BTN_FORWARD, respectively. Example usage: keep the default of scrolling terminal contents with the wheel, when used without modifiers, but map Control+wheel to font zoom in/out: [mouse-bindings] font-increase=Control+BTN_FORWARD font-decrease=Control+BTN_BACK (this also keeps the default key bindings to zoom in/out; ctrl-+ and ctrl+-) Closes #1077
* url-mode: handle wide chars and grapheme clusters when auto-detecting URLsDaniel Eklöf2023-08-21-0/+3
| | | | | | | | | | * Skip spacer cells. This fixes an issue where characters following a double-width character weren't detect properly. * Unpack grapheme clusters (i.e. cells with multiple codepoints), and iterate all their codepoints. Closes #1465
* term: improve fallback logic when selecting scaling factor while unmappedDaniel Eklöf2023-08-18-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | The foot window may, for various reasons, become completely unmapped (that is, being removed from all outputs) at run time. One example is wlroots based compositors; they unmap all other windows when an opaque window is fullscreened. 21d99f8dced335826964ca96b8ba7ccac059e598 introduced a regression, where instead of picking the scaling factor from one of the available outputs (at random), we started falling back to '1' as soon as we were unmapped. This patch restores the original logic, but also improves upon it. As soon as a scaling factor has been assigned to the window, we store a copy of it in the term struct ('scale_before_unmap'). When unmapped, we check if it has a valid value (the only time it doesn't is before the initial map). If so, we use it. Only if it hasn't been set do we fall back to picking an output at random, and using its scaling factor. Closes #1464
* changelog: systemd units in GNOMEMax Gautier2023-08-10-0/+11
|
* meson: allow building with wayland-protocols as a subprojectDaniel Eklöf2023-08-08-0/+4
|
* meson: require wayland-protocols >= 1.32Daniel Eklöf2023-08-07-0/+7
|
* Merge branch 'releases/1.15'Daniel Eklöf2023-08-07-4/+8
|\
| * changelog: prepare for 1.15.3Daniel Eklöf2023-08-07-10/+3
| |
| * render: OSD: center text verticallyDaniel Eklöf2023-08-07-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | Rewrite render_osd(), and instead of passing in an y-offset, let render_osd() itself center the text inside the OSD buffer. This is done using the same baseline calculation term_font_baseline() does, except we use the buffer height instead of the line height. Note that most OSDs are sized based on the line height... Closes #1430
| * main: translate command line options to overridesDaniel Eklöf2023-08-07-0/+4
| | | | | | | | | | | | | | | | | | Instead of special casing configuration affecting command line options (like --font, --fullscreen, --maximized etc), translate them to overrides, and let the configuration system handle them. This also fixes an issue where -f,--font did not set csd.font, if csd.font were otherwise unset.
| * changelog: add new ‘unreleased section’Daniel Eklöf2023-08-07-0/+11
| |
* | changelog: “config” -> “config option”Daniel Eklöf2023-08-05-1/+1
| |
* | render: OSD: center text verticallyDaniel Eklöf2023-07-31-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | Rewrite render_osd(), and instead of passing in an y-offset, let render_osd() itself center the text inside the OSD buffer. This is done using the same baseline calculation term_font_baseline() does, except we use the buffer height instead of the line height. Note that most OSDs are sized based on the line height... Closes #1430
* | config: remove deprecated option 'utempter'Daniel Eklöf2023-07-31-0/+4
| |
* | main: translate command line options to overridesDaniel Eklöf2023-07-31-0/+4
| | | | | | | | | | | | | | | | | | Instead of special casing configuration affecting command line options (like --font, --fullscreen, --maximized etc), translate them to overrides, and let the configuration system handle them. This also fixes an issue where -f,--font did not set csd.font, if csd.font were otherwise unset.
* | changelog: add new ‘unreleased section’Daniel Eklöf2023-07-30-0/+11
|/
* changelog: prepare for 1.15.2Daniel Eklöf2023-07-30-9/+3
|
* --window-size-chars: ensure width/height are valid for current scaling factorDaniel Eklöf2023-07-30-0/+4
| | | | | | | | | | Before this patch, we didn’t ensure width and height were valid for the current scaling factor, when fractional scaling _is_ available. That is, we didn’t ensure the width/height values multiplied back to their original values after dividing with the scaling factor. Closes #1446
* changelog: CSDs with fractional scalingDaniel Eklöf2023-07-29-0/+2
|
* wayland: don't try to use a non-existing viewporter interfaceDaniel Eklöf2023-07-28-0/+3
| | | | | | | | | | | When instantiating the viewport for a pointer surface, we didn't first check if the compositor implements the viewporter interface. This triggered a crash when a) foot was compiled with fractional scaling, and b) the compositor did not implement the viewporter interface. Closes #1444
* meson: add -Dterminfo-base-name optionDaniel Eklöf2023-07-28-0/+5
| | | | | | | | | | | | | | | | This defines the base name of the generated terminfo files. It defaults to the value of -Ddefault-terminfo (i.e. 'foot') Example: meson -Ddefault-terminfo=foot-bananas -Dterminfo-base-name=foot-apples The generated terminfo files will be * terminfo/f/foot-apples * terminfo/f/foot-apples-direct The default value of $TERM will be 'foot-bananas'
* config: add tweak.bold-text-in-bright-amountDaniel Eklöf2023-07-28-0/+6
| | | | | | | | By how much to increase the luminance when brightening bold fonts. This was previously hard-coded to a factor of 1.3, which is now the default value of the new config option. Closes #1434
* render: apply new baseline calculation everywhereDaniel Eklöf2023-07-25-0/+6
| | | | | | | | * URL jump labels * Scrollback position indicator * Line/box drawings characters Closes #1430
* wayland: update terminals (fonts etc) on xdg_output_handle_done()Daniel Eklöf2023-07-23-0/+2
| | | | | | | | | | | | | | | | | Monitor DPI depends on information from both the wl_output and the xdg_output interfaces. Before this patch, terminals were only updated after changes to the wl_output interfaces (thus depending on xdg output changes being pushed by the compositor before wl_output changes). That assumption (xdg_output happening before wl_output) isn’t always true. This patch fixes the issue by updating the terminals in the xdg_output’s “done” event. Closes #1431
* changelog: ignore invalid UTF-8 in inputDaniel Eklöf2023-07-22-0/+6
|
* changelog: add new ‘unreleased’ sectionDaniel Eklöf2023-07-21-0/+11
|
* changelog: prepare for 1.15.1Daniel Eklöf2023-07-21-6/+9
|
* render: change baseline calculation, to center it within the lineDaniel Eklöf2023-07-21-0/+3
| | | | | | | Before this patch, fonts were anchored to the top of the line. With this patch, it is instead centered. Closes #1302
* Changelog: standard system target + footclient fallbackMax Gautier2023-07-21-0/+7
|
* render: OSD: don’t mark surface as being opaque, when it’s notDaniel Eklöf2023-07-19-0/+1
|
* render: disable transparency when we’re fullscreenedDaniel Eklöf2023-07-19-0/+3
| | | | | | | | | | | | | | | The wayland protocol recommends (or mandates?) that compositors render a black background behind fullscreened transparent windows. I.e. you never see what’s _actually_ behind the window. So, if you have a white, but semi-transparent background in foot, it’ll be rendered in a shade of gray. Given this, it’s better to simply disable transparency while we’re fullscreened. That way, we at least get the "correct" background color. Closes #1416
* changelog: spelling: sacling -> scalingDaniel Eklöf2023-07-19-1/+1
|
* term: destroy: unref key bindings *after* destroying windowDaniel Eklöf2023-07-18-0/+2
| | | | | | | | | | | | | | | | | This fixes a crash-on-exit on compositors that emit a _"keyboard leave"_ event when a surface is unmapped. In our case, destroying the window (where we unmap it) in term_destroy(), lead to a crash in term_mouse_grabbed(), due to key_binding_for() returning NULL. The call chain in this is case is, roughly: term_destroy() -> wayl_win_destroy() -> keyboard_leave() -> term_xcursor_update_for_seat() -> term_mouse_grabbed()
* themes: starlight: update to V4Daniel Eklöf2023-07-18-0/+3
| | | | | | | This also updates the default theme in foot, as well as the documentation. Closes #1409
* changelog: crash on pointer capability lossDaniel Eklöf2023-07-18-0/+3
|
* changelog: wrong DPI, and wrong initial font size with fractional scalingDaniel Eklöf2023-07-18-0/+8
|
* changelog: monitor metadata is now picked from the one we were last mapped onDaniel Eklöf2023-07-18-0/+6
|
* render: fix xcursor scaling with fractional-scale-v1Daniel Eklöf2023-07-18-0/+3
| | | | | | This worked just after the fractional-scaling branch was merged, but was then broken by the cursor-shape branch, due to a bad rebase of that branch.