aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeLines
* render: resize: configure with only one dimension being zeroDaniel Eklöf2025-01-26-15/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The protocol states: If the width or height arguments are zero, it means the client should decide its own window dimension. This may happen when the compositor needs to configure the state of the surface but doesn't have any information about any previous or expected dimension. The wording is a bit ambiguous; does it mean we should set *both* width and height to values we choose, even if only one dimension is zero in the configure event? Or does it mean that we should choose the value for the dimension that is zero in the configure event? Regardless, it's pretty clear that it does *not* mean we should *only* choose width and height if *both* dimensions are zero in the configure event. This is foot's behavior before this patch, meaning if only one of them is zero, foot assumed the compositor wanted us to set the width (or height) to zero... Change this, so that we now choose value for the "missing" dimension, but do use the compositor provided value for the other dimension. Closes #1925 Relevant issues: * https://gitlab.freedesktop.org/wayland/wayland-protocols/-/issues/155 * https://github.com/YaLTeR/niri/issues/1050
* grid: reflow: regression: remove (truncate) SPACER cells at the end of lineDaniel Eklöf2025-01-25-1/+6
| | | | | | | | | | | | | | | | | | | | When printing a double-width glyph at the end of the line, it will get pushed to the next line if there's only one cell left on the current line. That last cell on the current line is filled with a SPACER value. When reflowing the text, the SPACER cell should be "removed", so that the double-width glyph continues directly after the text on the previous line. 9567694bab7149afbb4e4fcc4c754272a8d25aba fixed an issue where reflowing e.g. neofetch output incorrectly removed spaces between the logo, and the system info. But also introduced a regression where SPACER values no longer are removed. This patch tries to fix it, by adding back empty cells, but NOT SPACER cells.
* changelog: cwd > 1024 charsDaniel Eklöf2025-01-24-0/+3
|
* client: port bfabc5450b3a01c7d701809b3cf6158220ea289e to footclientDaniel Eklöf2025-01-24-1/+1
|
* fix infinite loop/oom when cwd longer then 1024camel-cdr2025-01-24-1/+1
| | | | | | The code reads cwd into a buffer, which is expanded while errno is ERANGE, with the intent of growing the buffer until the path fits. While getcwd will set errno on error, it will not reset it once the path fits into the buffer. So to not get an infinite loop once errno is ERANGE, we need to make sure to reset errno, such that the loop behaves as expected.
* config: check for FcNameUnparse() failureDaniel Eklöf2025-01-24-0/+5
|
* input: kitty: refactor, try to simplify and be less confusingDaniel Eklöf2025-01-22-47/+60
| | | | | | | | | | Use better named variables while juggling the shifted vs. unshifted key codes. Switch to variable names appropriate for the kitty keyboard protocol once we have all the unshifted, shifted and base key codes done. It's not until then we can decide which key code to use as the main key, and whether or not to report the alternate key code.
* input: kitty: add more test casesDaniel Eklöf2025-01-22-0/+46
|
* input: kitty: only set 'alternate' if the "unshifted" code is printableDaniel Eklöf2025-01-22-19/+26
| | | | | Fixes a regression where alt+backspace was reported as ^[[8:127;3u instead of ^[[127;3u.
* input: codespell: indiciates -> indicatesDaniel Eklöf2025-01-22-2/+2
|
* shm: codespell: re-using -> reusingDaniel Eklöf2025-01-22-1/+1
|
* input: kitty: add initial unit testDaniel Eklöf2025-01-22-0/+229
| | | | | | | | Test a couple of key combos from the se and de(neo) layouts. This unit test isn't intended to test _all_ key combinations, for all kitty flag combinations, but to be more of a regression test - whenever we discover a buggy, weird combo, add it here.
* input: kitty: improve handling of alternate+base keys even moreDaniel Eklöf2025-01-20-33/+41
| | | | | | | | | | | | | | | | * Always do a base key lookup. Before this, we didn't do that if we matched the XKB sym to a lookup table entry (i.e. keypads, cursor keys etc.) * Try to retrieve the unshifted symbol also when we matched the symbol to a lookup table entry. When successful, we now report an alternate key for keypad and cursor keys; before this patch, we only did that for keys that didn't have an entry in the lookup table (i.e. ASCII chars etc). This improves compatibility with kitty (and the kitty keyboard protocol) in more corner cases. One particular example is the neo keyboard layout, where part of the regular keys act as keypad keys when num-lock is active.
* input: kitty: fix alternate codepoint sometimes not being reportedDaniel Eklöf2025-01-20-23/+9
| | | | | | | | | | | | | | | | | | | | | When alternate key reporting is enabled (i.e. when we're supposed to report the shifted key along with the unshifted key), we try to figure out whether the key really is shifted or not (and thus which xkb keysym to use for the unshifted and shifted keys in the escape). This was done by getting the layout's *all* modifier combinations that produce the shifted keysym, and if any of of them contained a modifier that isn't supported by the kitty protocol, the shifted and unshifted keys are derived from the same keysym. This is to ensure we handle things like AltGr-combos correctly. The issue is, since there may be more than one modifier combination generating the shifted keysym, we may end up using the wrong keysym just because _another_ combination set contains modifiers not supported by the kitty protocol. What we're interrested in is whether the *pressed* set of modifiers contains such modifiers. Closes #1918
* vt: combining chars: ensure 'key' is within rangeDaniel Eklöf2025-01-18-0/+2
| | | | | | When there's a key collision, we increment the key and check again. When doing this, we need to ensure the key is withing range, and wrap around to 0 if the key value is too large.
* Merge branch 'releases/1.20'Daniel Eklöf2025-01-18-7/+20
|\
| * changelog: move utf8proc entry to correct release1.20.2releases/1.20Daniel Eklöf2025-01-18-3/+3
| |
| * changelog: add back entry to 1.20.1, removed in de3becef96f30b96f0fceddf73805c3951ccb59fDaniel Eklöf2025-01-18-0/+3
| |
| * meson: bump version to 1.20.2Daniel Eklöf2025-01-18-1/+1
| |
| * changelog: prepare for 1.20.2Daniel Eklöf2025-01-18-6/+5
| |
| * forgejo: bugs: short explanation of what an IME isDaniel Eklöf2025-01-18-2/+2
| |
| * forgejo: bugs: config: uppercase description's first letterDaniel Eklöf2025-01-18-1/+1
| |
| * forgejo: bugs: add required field 'config'Daniel Eklöf2025-01-18-0/+7
| | | | | | | | Require all bug submitters to include their foot configs.
| * forgejo: bugs: add required field 'distro'Daniel Eklöf2025-01-18-0/+8
| |
| * term: cursor_refresh(): don't try to dirty the grid if we don't have oneDaniel Eklöf2025-01-18-0/+7
| | | | | | | | | | | | | | | | | | | | | | If the compositor sends a keyboard enter event before our window has been mapped, foot crashes; the enter event triggers a cursor refresh (hollow -> non-hollow block cursor), which crashes since we haven't yet allocated a grid. Fix by no-op:ing the refresh if the window hasn't been configured yet. Closes #1910
| * changelog: colors.flash-alpha=1.0Daniel Eklöf2025-01-18-0/+6
| |
| * Revert "config: don't allow colors.flash-alpha to be 1.0"Alexander Orzechowski2025-01-18-26/+2
| | | | | | | | This reverts commit 56d2c3e990509d18de31e6009e0d0c6254f99b67.
| * terminal: Refresh only overlay when flash expiresAlexander Orzechowski2025-01-18-1/+6
| | | | | | | | | | | | | | If we call render_refresh, that will wait for a callback to the main surface. In the case of a flash, the main surface might not get callbacks if the compositor implements fancy culling optimizations like wlroots wlr_scene compositors such as sway version >=1.10.
| * render: Expose render_overlayAlexander Orzechowski2025-01-18-1/+5
| | | | | | | | | | This function updates the overlay that foot uses. It will be used to update the overlay when the flash effect ends.
| * changelog: 'CSI 21 t' and 'OSC 176 ?' disabledDaniel Eklöf2025-01-18-0/+7
| |
| * doc: ctlseqs: remove 'CSI 21 t'Daniel Eklöf2025-01-18-3/+0
| |
| * osc: ignore 'OSC 176 ?' - report app IDDaniel Eklöf2025-01-18-0/+4
| | | | | | | | | | It's not widely used (don't know _any_ application that uses it), and can be used to trick users to run unwanted commands.
| * csi: ignore 'CSI 21 t' - report window titleDaniel Eklöf2025-01-18-0/+4
| | | | | | | | | | It's not widely used (don't know _any_ application that uses it), and can be used to trick users to run unwanted commands.
| * ci: "meson [options]" is deprecated (do "meson setup [options]" instead)Daniel Eklöf2025-01-18-9/+9
| |
| * changelog: utf8proc.h not foundDaniel Eklöf2025-01-18-0/+3
| |
| * meson: fix dependencies (utf8proc missing in lots of places)Daniel Eklöf2025-01-18-3/+7
| |
| * ci: sr.ht: try to bring up to date, and pull from codebergDaniel Eklöf2025-01-18-1/+2
| |
| * ci: sr.ht: disable x64 (rely on codeberg only)Daniel Eklöf2025-01-18-0/+0
| |
| * changelog: add missing issue refDaniel Eklöf2025-01-18-1/+1
| |
| * changelog: add new 'unreleased' sectionDaniel Eklöf2025-01-18-0/+11
| |
* | features: add +/-system-bell to version outputDaniel Eklöf2025-01-17-3/+15
| |
* | Add support for the new Wayland protocol xdg-system-bellDaniel Eklöf2025-01-17-11/+91
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | From the release notes: system bell - allowing e.g. terminal emulators to hand off system bell alerts to the compositor for among other things accessibility purposes The new protocol is used when the new config option bell.system=yes (and the compositor implements the protocol, obviously). The system bell is rung independent of whether the foot window has keyboard focus or not (thus relying on compositor configuration to determine whether anything should be done or not in response to the bell). The new option is enabled by default.
* | forgejo: bugs: short explanation of what an IME isDaniel Eklöf2025-01-10-2/+2
| |
* | forgejo: bugs: config: uppercase description's first letterDaniel Eklöf2025-01-10-1/+1
| |
* | forgejo: bugs: add required field 'config'Daniel Eklöf2025-01-10-0/+7
| | | | | | | | Require all bug submitters to include their foot configs.
* | forgejo: bugs: add required field 'distro'Daniel Eklöf2025-01-10-0/+8
| |
* | term: cursor_refresh(): don't try to dirty the grid if we don't have oneDaniel Eklöf2025-01-09-0/+7
| | | | | | | | | | | | | | | | | | | | | | If the compositor sends a keyboard enter event before our window has been mapped, foot crashes; the enter event triggers a cursor refresh (hollow -> non-hollow block cursor), which crashes since we haven't yet allocated a grid. Fix by no-op:ing the refresh if the window hasn't been configured yet. Closes #1910
* | changelog: colors.flash-alpha=1.0Daniel Eklöf2025-01-09-0/+6
| |
* | Merge branch 'opaque-flash'Daniel Eklöf2025-01-09-28/+13
|\ \
| * | Revert "config: don't allow colors.flash-alpha to be 1.0"Alexander Orzechowski2025-01-09-26/+2
| | | | | | | | | | | | This reverts commit 56d2c3e990509d18de31e6009e0d0c6254f99b67.
| * | terminal: Refresh only overlay when flash expiresAlexander Orzechowski2025-01-09-1/+6
| | | | | | | | | | | | | | | | | | | | | If we call render_refresh, that will wait for a callback to the main surface. In the case of a flash, the main surface might not get callbacks if the compositor implements fancy culling optimizations like wlroots wlr_scene compositors such as sway version >=1.10.
| * | render: Expose render_overlayAlexander Orzechowski2025-01-09-1/+5
|/ / | | | | | | | | This function updates the overlay that foot uses. It will be used to update the overlay when the flash effect ends.
* | Merge branch 'ignore-title-and-app-id-report-queries'Daniel Eklöf2025-01-07-3/+15
|\ \ | | | | | | | | | Related to #1894
| * | changelog: 'CSI 21 t' and 'OSC 176 ?' disabledDaniel Eklöf2025-01-07-0/+7
| | |
| * | doc: ctlseqs: remove 'CSI 21 t'Daniel Eklöf2025-01-07-3/+0
| | |
| * | osc: ignore 'OSC 176 ?' - report app IDDaniel Eklöf2025-01-07-0/+4
| | | | | | | | | | | | | | | It's not widely used (don't know _any_ application that uses it), and can be used to trick users to run unwanted commands.
| * | csi: ignore 'CSI 21 t' - report window titleDaniel Eklöf2025-01-07-0/+4
|/ / | | | | | | | | It's not widely used (don't know _any_ application that uses it), and can be used to trick users to run unwanted commands.
* | ci: "meson [options]" is deprecated (do "meson setup [options]" instead)Daniel Eklöf2025-01-04-9/+9
| |
* | changelog: utf8proc.h not foundDaniel Eklöf2025-01-04-0/+3
| |
* | meson: fix dependencies (utf8proc missing in lots of places)Daniel Eklöf2025-01-04-3/+7
| |
* | ci: sr.ht: try to bring up to date, and pull from codebergDaniel Eklöf2025-01-04-1/+2
| |
* | ci: sr.ht: disable x64 (rely on codeberg only)Daniel Eklöf2025-01-04-0/+0
| |
* | changelog: add missing issue refDaniel Eklöf2025-01-03-1/+1
| |
* | changelog: add new 'unreleased' sectionDaniel Eklöf2025-01-03-0/+11
| |
* | Merge branch 'releases/1.20'Daniel Eklöf2025-01-03-10/+4
|\|
| * meson: bump version to 1.20.11.20.1Daniel Eklöf2025-01-03-1/+1
| |
| * changelog: prepare for 1.20.1Daniel Eklöf2025-01-03-9/+3
| |
| * Merge branch 'master' into releases/1.20Daniel Eklöf2025-01-03-15/+108
| |\ | |/ |/|
* | render: fix order we're checking custom codepointsDaniel Eklöf2025-01-03-11/+18
| | | | | | | | | | | | | | Fixes a crash when trying to print a "Legacy Computing" symbol (U+1FB00-U+1FB9B). Closes #1901
* | themes: add iterm theme from alacrittyevplus2025-01-02-0/+27
| |
* | osc: disable debug loggingDaniel Eklöf2025-01-02-1/+1
| |
* | notify: disable debug loggingDaniel Eklöf2025-01-02-1/+1
| |
* | config: don't allow colors.flash-alpha to be 1.0Daniel Eklöf2025-01-02-2/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A compositor will not send a frame callback for our main window if it is fully occluded (for example, by a fully opaque overlay...). This causes the overlay to stuck. For regular buffers, it _should_ be enough to *not* hint the compositor it's opaque. But at least some compositor special cases single-pixel buffers, and actually look at their pixel value. Thus, we have two options: implement frame callback handling for the overlay sub-surface, or ensure we don't use a fully opaque surface. Since no overlays are fully opaque by default, and the flash surface is the only one that can be configured to be opaque (colors.flash-alpha), and since adding frame callback handling adds a lot of boilerplate code... let's go with the simpler solution of
* | term: limit app-id to 2048 charactersDaniel Eklöf2025-01-02-0/+22
| | | | | | | | | | | | | | | | | | | | | | | | Unsure if the protocol imposes a limit (haven't found any documentation), or if the issue is in the libwayland implementation, or wlroots (triggers in at least sway+river). The issue is that setting a too long app-id causes the compositor (river at least) to peg the CPU at 100%, and stop sending e.g. frame callbacks to foot. Closes #1897
* | changelog: add missing issue refDaniel Eklöf2025-01-01-0/+2
| |
* | changelog: add new 'unreleased' sectionDaniel Eklöf2025-01-01-0/+11
| |
* | Merge branch 'releases/1.20'Daniel Eklöf2025-01-01-6/+10
|\|
| * meson: bump version to 1.20.01.20.0Daniel Eklöf2025-01-01-1/+1
| |
| * changelog: prepare for 1.20.0Daniel Eklöf2025-01-01-5/+9
|/
* kitty kbd: don't generate release events for plain Enter+Tab+BackspaceDaniel Eklöf2025-01-01-3/+18
| | | | | | | | | | | From the specification: The Enter, Tab and Backspace keys will not have release events unless Report all keys as escape codes is also set, so that the user can still type reset at a shell prompt when a program that sets this mode ends without resetting it. Closes #1892
* osc: add option to disable OSC-52, partially or fullyDaniel Eklöf2024-12-22-1/+99
| | | | Closes #1867
* selection: fix crash when tripple clicking in a region containing NUL charactersDaniel Eklöf2024-12-22-4/+5
| | | | | | | If a cell contains a NUL character, it was incorrectly treated as a quote, later triggering an assertion. Patch by Johannes Altmanninger
* misc: add missing include stdlib.h (for free())Daniel Eklöf2024-12-20-0/+1
| | | | Closes #1887
* term: set_app_id() + set_window_title(): only allow printable charactersDaniel Eklöf2024-12-17-6/+19
|
* box-drawings: implement octantsDaniel Eklöf2024-12-08-12/+467
|
* pgo: prefer full-headless-sway over full-headless-cageheather72832024-12-08-5/+2
|
* quit should be in key-bindingscy2024-12-08-1/+1
|
* Update rose-pine, add theme variantsDenis Zharikov2024-12-08-17/+81
|
* pgo: explicitly set LLVM_PROFILE_FILE envvarheather72832024-12-08-0/+1
| | | | | | | | | When building foot with pgo under gentoo's portage, LLVM tried to generate profile data files directly under system root, triggering sandbox violation and causing build to fail. Setting this envvar fixes the issue by explicitly specifying profiling data location. Reference: https://clang.llvm.org/docs/UsersManual.html#profiling-with-instrumentation
* pgo: run sway with --unsupported-gpu flagheather72832024-12-08-1/+1
| | | | | | Sway refuses to run if it detects an nvidia GPU on the system, causing pgo build to fail. Adding --unsupported-gpu flag disables this behaviour.
* term: get_font_dpi(): remove invalid assertionDaniel Eklöf2024-11-24-2/+0
| | | | Closes #1874
* vt: don't call fcft_precompose() if font is NULLDaniel Eklöf2024-11-02-3/+5
| | | | | This fixes a crash when doing a partial PGO build (where we don't have any fonts available).
* char32: use utf8proc_charwidth() instead of wcwidth(), when availableDaniel Eklöf2024-11-02-0/+20
| | | | | | | | | | It appears to be slightly more up-to-date with recent Unicode versions. In particular, it handles the new "Symbols for Legacy Computing Supplement" block, introduced in Unicode 16. Closes #1865
* osc: 9: ignore ConEmu/Windows Terminal sequencesDaniel Eklöf2024-11-02-1/+19
| | | | | OSC-9 sequences starting with "<number>;" are now ignored, as they are ConEmu sequences, and not iTerm notifications.
* unicode: update data files to 16.0Daniel Eklöf2024-10-31-4/+10
| | | | Yup, there's no _actual_ changes 🤷
* changelog: osc-9/777 crash when body is emptyDaniel Eklöf2024-10-31-0/+7
|
* osc: notify: fix crash with no messageJack Wilsdon2024-10-31-2/+7
| | | | Closes #1866
* docs: document more default bindings in search scrollback mode.Mark Stosberg2024-10-25-2/+56
| | | | These were introduced by #1496 but not fully documented then.
* changelog: add new 'unreleased' sectionDaniel Eklöf2024-10-23-0/+11
|
* Merge branch 'releases/1.19'Daniel Eklöf2024-10-23-6/+9
|\