aboutsummaryrefslogtreecommitdiff
path: root/CHANGELOG.md (follow)
Commit message (Collapse)AuthorAgeLines
* 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.
* render: use rounding for fractional scaleRonan Pigott2023-07-16-0/+3
| | | | | If we truncate the buffer dimensions we may accidentally submit a buffer with inappropriate size.
* changelog: add new ‘unreleased’ sectionDaniel Eklöf2023-07-14-0/+11
|
* changelog: prepare for 1.15.0Daniel Eklöf2023-07-14-3/+18
|
* config: add csd.double-click-to-maximize=no|yes optionDaniel Eklöf2023-07-14-0/+3
| | | | | | | | | When enabled, double-clicking the CSD titlebar will (un)maximize the window. Defaults to ‘yes’ (since this is the old hard-coded behavior). Closes #1293
* config: make ‘starlight’ the default color themeDaniel Eklöf2023-07-14-0/+4
| | | | Closes #1321
* render: don’t invert cursor colors when custom colors are being usedDaniel Eklöf2023-07-14-0/+5
| | | | | | | | | | | | When the user has configured custom cursor colors (cursor.color is set in foot.ini), don’t invert those colors when the cell is either selected, or has the ‘reverse’ attribute set. This aligns foot’s behavior with Alacritty, Kitty and Wezterm. Contour also behaves similarly, except mouse selections override the cursor colors (turning the cursor invisible). Closes #1347
* changelog: mention the new default key binding for show-urls-launch under “fixed”Daniel Eklöf2023-07-10-0/+3
| | | | | It “fixes” the key binding conflict seen on e.g. GNOME, and increases the exposure of the change to, hopefully, more users.
* changelog: split up key binding changes for show-urls-launch and unicode-inputDaniel Eklöf2023-07-10-3/+4
|
* bind control-shift-u to unicode-input, move urls to oAntoine Beaupré2023-07-10-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Having a keybinding to invoke arbitrary unicode characters is very useful. It's often used as a method of last resort to communicate with people outside of your main language. For example, if you want to type the last letter of my real name, you can invoke the latin-1 character 0xe9 or unicode 0x00e9. You can also use this to type special characters, for example, unicode U+1F4A9 is of course, the infamous PILE OF POO, which is sure to produce million laughs everywhere you go. In foot, there's no keybinding by default to invoke the very useful unicode-input command. There is no "standard" (as in "ISO") keybinding this either. But there *is* a de-facto standard currently deployed by *both* GTK and Qt (a rare feat) *and* Chrome OS (an even rarer feat) and it's control-shift-u. Alternatives include Control-x 8 (emacs), Control V u (vim), Alt (Windows, LibreOffice), or Option (Mac). I doubt we want to adopt any of those. So let's use control-shift-u for this. Unfortunately, it's currently assigned to show-urls-launch, which is unfortunate, but insurmountable. We can reassign this keybinding elsewhere. I have picked control-shift-o in my configuration, because "o" is a good mnemonic for "open URLs". Others have suggested "m" instead. Closes: #1183
* input: add basic support for touchscreen inputCismonX2023-07-05-0/+2
| | | | Closes #517
* changelog: fractional-scaling-v1 -> fractional-scale-v1Daniel Eklöf2023-07-04-2/+2
|
* cursor-shape: add support for server side cursor shapesDaniel Eklöf2023-07-03-0/+4
| | | | | | | | | | | | | This implements support for the new cursor-shape-v1 protocol. When available, we use it, instead of client-side cursor surfaces, to select the xcursor shape. Note that we still need to keep client side pointers, for: * backward compatibility * to be able to "hide" the cursor Closes #1379
* sixel: re-scale images when the cell dimensions changeDaniel Eklöf2023-06-30-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Before this patch, when the cell dimensions changed (i.e. when the font size changes), sixel images were either removed (the new cell dimensions are smaller than the old), or simply kept at their original size (new cell dimensions are larger). With this patch, sixels are instead resized. This means a sixel *always* occupies the same number of rows and columns, regardless of how much the font size is changed. This is done by maintaining two sets of image data and pixman images, as well as their dimensions. These two sets are the new ‘original’ and ‘scaled’ members of the sixel struct. The "top-level" pixman image pointer, and the ‘width’ and ‘height’ members either point to the "original", or the "scaled" version. They are invalidated as soon as the cell dimensions change. They, and the ‘scaled’ image is updated on-demand (when we need to render a sixel). Note that the ‘scaled’ image is always NULL when the current cell dimensions matches the ones used when emitting the sixel (to save run-time memory). Closes #1383
* changelog: dpi-aware’s default value is now ‘no’Daniel Eklöf2023-06-29-0/+6
|
* changelog: mention the newly added support for fractional-scaling-v1Daniel Eklöf2023-06-29-0/+3
|
* sixel: stop cropping images to the last non-transparent rowDaniel Eklöf2023-06-24-0/+1
|
* sixel: respect sixel aspect ratioDaniel Eklöf2023-06-24-0/+3
| | | | | | | | That is, parse P1 when initializing a new sixel, and don’t ignore pad/pad in the raster attributes command. The default aspect ratio is 2:1, but most sixels will override it in the raster attributes command (to 1:1).
* sixel: fix cursor positioning logicDaniel Eklöf2023-06-24-0/+9
| | | | | | | | | | | | | | | | | | This adjusts the logic that positions the text cursor after emitting a sixel, when sixel scrolling mode is *enabled*. We’ve always mimicked XTerm’s behavior. However, XTerm recently changed its behavior, to better match that of an VT382. Now, the cursor is placed *on* the last row of the sixel, instead of on a new row after the sixel. This allows applications to print sixels to the bottom row of the terminal, without causing the content to scroll. Finally, there was a bug in the horizontal positioning of the cursor; it was placed on the *first* column of the row, instead of on the first column of the sixel.
* term: scroll: only record scroll damage when viewport is at the bottomDaniel Eklöf2023-06-23-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We don’t need to record scroll damage if the viewport isn’t at the bottom, since in this case, the renderer ignores the scroll damage anyway. This fixes a performance corner case, when the viewport is at the top of the scrollback history. When application scrolls the terminal contents, and the scrollback history is full, and the viewport is at top of the history, then the viewport needs to be moved (the scrollback history is a circular buffer, and thus the top of the history “moves” when we’re scrolling in new contents). Moving the viewport typically results in another type of scroll damage (DAMAGE_SCROLL_IN_VIEW, instead of the “normal” DAMAGE_SCROLL). Thus, each application triggered scroll, will result in two scroll damage records: one DAMAGE_SCROLL, and one DAMAGE_SCROLL_IN_VIEW. These two are incompatible, meaning they can’t be merged. What’s worse, it also means the DAMAGE_SCROLL records from two application triggered scrolls cannot be merged (since there’s a DAMAGE_SCROLL_IN_VIEW in between). As a result, the renderer will not see one, or “a few” scroll damage events, but a *ton*. _Each_ one typically a single line, or so. And each one resulting in lots of traffic on the wayland socket, as we create and destroy new buffer pools, when doing “shm scrolling”. This eventually leads to the socket not being able to keep up, and the socket is closed on us, forcing us to exit. The fix is really simple: don’t record “normal” scroll damage when scrolling, _unless_ the viewport is at the bottom (and thus “follows” the application output). As soon as the user scrolls up in the history, we’ll stop emitting normal scroll damage records. This is just fine, since, as mentioned above, the renderer ignores them when the viewport isn’t at the bottom. What if the viewport is moved back down again, before the next frame has been rendered? Wont there be “missing” scroll damage records? No, because moving the viewport results in scroll damage records by itself. Closes #1380
* render: resize: fix crash when reflowing the alt screenDaniel Eklöf2023-06-20-0/+3
| | | | | | | | | | | | | | | | When doing an interactive resize, and `resize-delay-ms` > 0 (the default), we would crash if the original screen size (i.e. the size before the interactive resize started) was larger than the last window size. For example, if we interactively go from 85 rows to 75, and then non-interactively went from 75 to 80, we’d crash. The resizes had to be made in a single go. One way to trigger this was to start an interactive resize on a floating window, and then *while resizing* toggle the window’s floating mode. Closes #1377
* meson: use meson feed feature for scdoc inputsewn2023-06-14-0/+2
| | | | Removes the need for a shell dependency.
* sixel: apply background alpha when P2=0 or P2=2, and current bg color is the default bg colorDaniel Eklöf2023-05-31-0/+6
| | | | Closes #1360
* osc: update font subpixel mode, and window opaque compositor hint, on alpha changesDaniel Eklöf2023-05-26-1/+3
| | | | | | | | | | | | | | | | | | | | | When background alpha is changed at runtime (using OSC-11), we (may) have to update the opaque hint we send to the compositor. We must also update the subpixel mode used when rendering font glyphs. Why? When the window is fully opaque, we use wl_surface_set_opaque_region() on the entire surface, to hint to the compositor that it doesn’t have to blend the window content with whatever is behind the window. Obviously, if alpha is changed from opaque, to transparent (or semi-transparent), that hint must be removed. Sub-pixel mode is harder to explain, but in short, we can’t do subpixel hinting with a (semi-)transparent background. Thus, similar to the opaque hint, subpixel antialiasing must be enabled/disabled when background alpha is changed.
* .desktop: remove StartupWMClass from server, use distinct StartupWMClass for foot and footclientjdevdevdev2023-05-22-1/+4
| | | | | | | | | | | | | | | For this to work, the default app-id of footclient has been changed from ‘foot’ to ‘footclient’. By using distinct StartupWMClasses, the compositor can connect a running foot/footclient instance to the correct .desktop-file. This ensures the correct icon is being used in e.g. docks, and that actions like “open another window” works correctly. Note that the user can override the app-id, either by setting app-id in foot.ini, or with the -a,--app-id command line option. Closes #1355
* utmp: rewrite utmp loggingDaniel Eklöf2023-05-22-0/+11
| | | | | | | | | | | | | | | | | | | | | | | This patch generalizes the utmp support, to not only support libutempter, but also ulog (and in the future, even more interfaces). * Rename config option main.utempter to main.utmp-helper * Add meson option -Dutmp-backend=none|libutempter|ulog|auto * Rename meson option -Ddefault-utempter-path to -Dutmp-default-helper-path * utmp is no longer detected at compile time, but at runtime instead. Meson will configure the following pre-processor macros, based on the selected utmp backend: * UTMP_ADD - argument to pass to utmp helper when adding a record (starting foot) * UTMP_DEL - argument to pass to utmp helper when removing a record (exiting foot) * UTMP_DEL_HAVE_ARGUMENT - if defined, UTMP_DEL expects an extra argument ($WAYLAND_DISPLAY) * UTMP_DEFAULT_HELPER_PATH - path to the default utmp helper binary The documentation has been updated to mention which arguments are passed to the helper binary. Closes #1314
* slave: unset TERM_PROGRAM{,_VERSION}Daniel Eklöf2023-05-18-1/+1
| | | | | | | | | | | | | | | | | | | | | Foot’s policy is to not set environment variables that identifies it (except the well-known and established `TERM` variable). We encourage applications to use terminfo to determine capabilities, or terminal queries, when available. Or, at least use terminal queries to detect the terminal and its version. Setting environment variables is a bad idea since they are inherited by all applications started by the terminal (which is the whole point). But, this includes other terminal emulators, making it very possible a terminal emulator gets mis-detected just because it was started from another terminal. Since there are a couple of terminal emulators that _do_ set TERM_PROGRAM and TERM_PROGRAM_VERSION, unset these environment variables to avoid being misdetected. Closes #1349
* term: reset: switch modifyOtherKeys back to level 1Daniel Eklöf2023-05-12-0/+1
|
* kitty: F3 is no longer allowed to emit CSI RDaniel Eklöf2023-04-26-0/+7
| | | | | | | | The original kitty keyboard specification allowed F3 to emit either CSI R, or CSI 13~. Support for CSI R was removed in later revisions of the protocol, since it collides with "Cursor Position Report" sequences.
* csi: implement "CSI ? m"Daniel Eklöf2023-04-26-0/+4
|
* render: ensure scroll region’s endpoint is valid after a window resizeDaniel Eklöf2023-04-12-0/+2
| | | | | | | | | If we had a non-empty bottom scroll region, and the window was resized to a smaller size, the scroll region was not reset correctly. This led to a crash when scrolling the screen content. Fix by making sure the scroll region’s endpoint is within range.
* *.desktop: add StartupWMClass=footDaniel Eklöf2023-04-05-0/+6
| | | | | | | | At least Gnome needs this in order to link running instances of foot to their corresponding .desktop file, used e.g. when determining which icon to display for running applications. Closes #1317
* changelog: add a new ‘unreleased’ sectionDaniel Eklöf2023-04-03-0/+11
|
* changelog: prepare for 1.14.0Daniel Eklöf2023-04-03-5/+18
|
* terminfo: remove DECRST of DECCOLM+DECSCLMDaniel Eklöf2023-04-02-0/+1
| | | | | | | | We’ve never supported neither 132-column mode, nor smooth scrolling. But we _did_ recognize the escape sequences. We don’t, anymore. Thus it makes very little sense to include these escapes in any of our terminfo capabilities. So, remove them.
* csi: DECCOLM+DECSCLM: remove all supportDaniel Eklöf2023-03-31-0/+2
| | | | | | | | | | | We don’t support neither 132 column mode, nor smooth scrolling. Thus it makes little sense to recognize these control condes. Note that while XTerm does support 132 columns, it is disabled by default. In this mode, XTerm also doesn’t trigger the side-effects (i.e. clearing the screen). Closes #1265
* changelog: typo: now -> notDaniel Eklöf2023-03-31-1/+1
|
* changeloge: remove bad escape charDaniel Eklöf2023-03-31-1/+1
|