<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/foot.git/CHANGELOG.md, branch spawn-terminal-cmdline-arguments</title>
<subtitle>A fast, lightweight and minimalistic Wayland terminal emulator</subtitle>
<id>https://git.0x0f.dev/mirrors/foot.git/atom?h=spawn-terminal-cmdline-arguments</id>
<link rel='self' href='https://git.0x0f.dev/mirrors/foot.git/atom?h=spawn-terminal-cmdline-arguments'/>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/'/>
<updated>2026-11-12T11:01:00Z</updated>
<entry>
<title>spawn-terminal: spawn with all the original command line options</title>
<updated>2026-11-12T11:01:00Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2026-11-12T10:50:55Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=f51f18d33557ea9078f7781f4a4235706228f5c9'/>
<id>urn:sha1:f51f18d33557ea9078f7781f4a4235706228f5c9</id>
<content type='text'>
Before this, spawn-terminal would spawn a new foot or footclient,
but *without* any of the command line options the user started the
original foot/footclient with.

We did have a hack for --config, but all other options were forgotten
in the new instance.

This patch fixes this.

* term_init() stores the raw argc/argv in the terminal struct.
* term_spawn_new() calls spawn() with the stored argc/argv.
* for single instances, main() calls term_init() with the unparsed
  argc/argv.
* the client/server protocol is extended to always send the raw
  argc/argv to the server.
* the server calls term_init() with the argc/argv from the client.
* bonus: on linux, we now use /proc/self/exe to determine which binary
  to launch. This means if you run e.g. a foot from your build tree,
  spawn-terminal will exec _that_ foot, not the system foot.

A couple of behavioral changes, and/or side-effects, caused by the
above (not exhaustive):

* footclient -E: spawn-terminal will not use the _exact_ environment
  from the original footclient, but will simply pass -E to the new
  footclient. This means the new instance will inherit the *current*
  environment of the original instance.
* foot htop: spawn-instance will _also_ launch a new foot+htop. Before
  this patch, spawn-instance would launch a new foot+shell.

Closes #1622
</content>
</entry>
<entry>
<title>wayland: update_terms_on_monitor(): skip terminals in the process of shutting down</title>
<updated>2026-10-25T11:08:15Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2026-10-25T11:08:15Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=152487e494993ad7fb5633a27c7d7ad0f8810ea5'/>
<id>urn:sha1:152487e494993ad7fb5633a27c7d7ad0f8810ea5</id>
<content type='text'>
In rare cases, xdg_output_handle_done() may be called while a terminal
is shutting down. This triggered a crash in
update_terms_for_monitor(), which de-references term-&gt;window (which is
NULL for terminals shutting down).

Closes #2487
</content>
</entry>
<entry>
<title>selection: fix row comparison in selection update</title>
<updated>2026-10-25T10:47:06Z</updated>
<author>
<name>CismonX</name>
<email>admin@cismon.net</email>
</author>
<published>2026-10-10T23:29:39Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=0e7e943062cc002b07d107f408eea7208f2d836c'/>
<id>urn:sha1:0e7e943062cc002b07d107f408eea7208f2d836c</id>
<content type='text'>
Absolute row numbers may wrap around, thus not suitable for comparison.
This may incorrectly update the selection direction and break word-wise
selection.

Compare scrollback-relative row numbers instead.

Fixes #2483.
</content>
</entry>
<entry>
<title>changelog: fix links</title>
<updated>2026-10-25T10:44:19Z</updated>
<author>
<name>CismonX</name>
<email>admin@cismon.net</email>
</author>
<published>2026-10-10T23:42:51Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=5f01c3d70479252561df71ddd64908bf912a509d'/>
<id>urn:sha1:5f01c3d70479252561df71ddd64908bf912a509d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>input: no need to strip trailing NULs from keymap</title>
<updated>2026-10-14T14:00:31Z</updated>
<author>
<name>CismonX</name>
<email>admin@cismon.net</email>
</author>
<published>2026-10-14T14:00:31Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=faa4b09b9fbbe0080d4db587119056e52831d37f'/>
<id>urn:sha1:faa4b09b9fbbe0080d4db587119056e52831d37f</id>
<content type='text'>
Since libxkbcommon 1.6.0, xkb_keymap_new_from_buffer() allows a
NUL-terminated string as keymap text [1]. Also the keymap text cannot
have multiple trailing NULs according to the Wayland protocol spec.

This also avoids length mismatch for munmap(), which may leak resource
when 'size % sysconf(_SC_PAGESIZE) == 1'.

Also see the original patch [2] which reported this issue.

[1]: https://github.com/xkbcommon/libxkbcommon/commit/b06aedb8ba
[2]: https://codeberg.org/dnkl/foot/pulls/2482
</content>
</entry>
<entry>
<title>ime: ignore enter events with a NULL surface</title>
<updated>2026-09-18T05:51:33Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2026-09-18T05:50:39Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=f3226bc5eba53ce4b0306546e99f5928198526c3'/>
<id>urn:sha1:f3226bc5eba53ce4b0306546e99f5928198526c3</id>
<content type='text'>
Closes #2467
</content>
</entry>
<entry>
<title>grid: reflow: Preserve cells with background color</title>
<updated>2026-09-10T06:35:29Z</updated>
<author>
<name>Celina Sophie Kalus</name>
<email>hello@celinakalus.de</email>
</author>
<published>2026-09-08T20:19:05Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=d4896e386b3757264775e3ac2e1d1abc9d13a0c2'/>
<id>urn:sha1:d4896e386b3757264775e3ac2e1d1abc9d13a0c2</id>
<content type='text'>
A cell was previously considered empty if its content is empty.
When an empty cell has a non-default background color, truncating such
cells from the end of the line when reflowing is unexpected. Instead,
treat such cells as non-empty to preserve them.

Closes #2462

Signed-off-by: Celina Sophie Kalus &lt;hello@celinakalus.de&gt;
</content>
</entry>
<entry>
<title>server: fix use-after-free during shutdown</title>
<updated>2026-09-10T06:28:00Z</updated>
<author>
<name>CismonX</name>
<email>admin@cismon.net</email>
</author>
<published>2026-09-05T22:17:29Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=96b717b7480314239736b19ae26db245385407b6'/>
<id>urn:sha1:96b717b7480314239736b19ae26db245385407b6</id>
<content type='text'>
When terminal shutdown is in progress, calling client_destroy()
results in subsequent fdm_shutdown() (registered by term_shutdown())
always called with a dangling 'struct terminal' pointer.

This may happen when footclient and the client application exit
simultaneously in a short window. See #2432 for more information.

Fixed by not calling client_destroy() when terminal shutdown is
in progress. The client will eventually be destroyed in
term_shutdown_handler() (invoked from shutdown_maybe_done()),
so there's no resource leak.
</content>
</entry>
<entry>
<title>changelog: add new 'unreleased' section</title>
<updated>2026-09-02T11:35:07Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2026-09-02T11:35:07Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=4697829af56b9fee24c1ef2901fe871c5b569cab'/>
<id>urn:sha1:4697829af56b9fee24c1ef2901fe871c5b569cab</id>
<content type='text'>
</content>
</entry>
<entry>
<title>changelog: prepare for 1.28.0</title>
<updated>2026-09-02T11:02:11Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2026-09-02T11:02:11Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=28d2a530d5504089ee00dd35cc0df86fad06f4c4'/>
<id>urn:sha1:28d2a530d5504089ee00dd35cc0df86fad06f4c4</id>
<content type='text'>
</content>
</entry>
<entry>
<title>config: remove support for the deprecated color-theme-switch-{1,2} key bindings</title>
<updated>2026-09-02T11:00:19Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2026-09-02T10:59:24Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=9284ad2d92b2b2a9928e17a305bd595c7723861b'/>
<id>urn:sha1:9284ad2d92b2b2a9928e17a305bd595c7723861b</id>
<content type='text'>
They were deprecated in 1.26.0, along with the 'colors' and 'colors2'
sections.
</content>
</entry>
<entry>
<title>config: remove support for the deprecated colors and colors2 sections</title>
<updated>2026-09-02T10:55:12Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2026-09-02T10:55:12Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=7aad838572248df2902c172b7448bc033ce01964'/>
<id>urn:sha1:7aad838572248df2902c172b7448bc033ce01964</id>
<content type='text'>
They were deprecated in 1.26.0, and replaced by colors-dark and
colors-light.
</content>
</entry>
<entry>
<title>changelog: selection-override-modifiers fixes</title>
<updated>2026-09-02T07:13:56Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2026-09-02T07:13:56Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=2559516b163431b3a865246666e6cb10cf8a1283'/>
<id>urn:sha1:2559516b163431b3a865246666e6cb10cf8a1283</id>
<content type='text'>
</content>
</entry>
<entry>
<title>render: re-evaluate mouse col/row coordinates after a window resize</title>
<updated>2026-08-29T17:58:56Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2026-08-29T17:44:29Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=765ca4070bb6f095fc58c030f2154ed03857701d'/>
<id>urn:sha1:765ca4070bb6f095fc58c030f2154ed03857701d</id>
<content type='text'>
Before this, the col/row coordinates for the mouse pointer was only
updated when the mouse either entered our window, or was moved inside
it.

However, when a window is resized without using the mouse, and the
user then clicks (again, without moving the mouse), we can get a
button event outside the cell grid, that we still think is on top of
the grid.

Example: user moves mouse over the bottom row. The window is
shrunk. Enough that the mouse is now outside the cell grid, but still
inside our window. This means we get a button event outside the
grid. But since we haven't updated the col/row coordinates, we think
it's on a row, that no longer exists.

Closes #2435
</content>
</entry>
<entry>
<title>input: ignore keyboard_enter() with NULL surface</title>
<updated>2026-08-29T17:28:39Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2026-08-29T17:28:39Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=14cd25d4b17408fb09f395b03a5eab0628c7d725'/>
<id>urn:sha1:14cd25d4b17408fb09f395b03a5eab0628c7d725</id>
<content type='text'>
It's a compositor bug to emit a keyboard_enter() event with a NULL
surface, but has been seen happening on Hyprland. Workaround by
ignoring the event.

Closes #2438
</content>
</entry>
<entry>
<title>Add support for file:// URLs for initial working directory</title>
<updated>2026-08-29T08:10:21Z</updated>
<author>
<name>airkoala</name>
<email>airkoala@airkoala.lol</email>
</author>
<published>2026-06-17T04:40:24Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=ab7b5a635cd5d7545831a1341278a9fec8499c30'/>
<id>urn:sha1:ab7b5a635cd5d7545831a1341278a9fec8499c30</id>
<content type='text'>
This will allow for foot to be registered as a MIME type handler for
directories, allowing a "open with foot" action via xdg-open.

Some applications pass a simple directory path (eg. qbittorrent) but
others pass it as a "file://" URL (lutris), which is also sometimes
percent-encoded (calibre) but sometimes not.

This patch should be able to handle all 3 of these variants.
</content>
</entry>
<entry>
<title>changelog: mouse grabbing without keymap</title>
<updated>2026-08-29T08:04:39Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2026-08-29T08:04:39Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=dac1e8616b0240a15639bb629ed69bf3a83437d5'/>
<id>urn:sha1:dac1e8616b0240a15639bb629ed69bf3a83437d5</id>
<content type='text'>
</content>
</entry>
<entry>
<title>wayland: clear touch focus in wayl_win_destroy()</title>
<updated>2026-08-29T07:55:45Z</updated>
<author>
<name>Marinus Klasen</name>
<email>marinus@mklasen.nl</email>
</author>
<published>2026-08-19T21:05:34Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=f8a367896a57d84967d7b537ee618aae8081e2ea'/>
<id>urn:sha1:f8a367896a57d84967d7b537ee618aae8081e2ea</id>
<content type='text'>
wl_touch has no leave event, so unmapping the surfaces cannot drop touch
focus the way it drops keyboard and pointer focus. seat-&gt;touch.surface
kept pointing at the window being destroyed, and seat-&gt;touch.state stayed
HELD/DRAGGING, so the guard in wl_touch_up() and wl_touch_motion() did not
fire. A wl_touch.up dispatched from the roundtrips in wayl_win_destroy()
then dereferenced the freed window:

    #0  wl_touch_up () at input.c:3587
    #12 wayl_roundtrip () at wayland.c:2416
    #13 wayl_win_destroy () at wayland.c:2297

Reproduced by touching a foot window and holding while the window is
destroyed: 3/3 crashes before, 0/7 after.
</content>
</entry>
<entry>
<title>wayland: handle_global_remove(): call wl_fixes::ack_global_remove(), when available</title>
<updated>2026-08-19T04:44:38Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2026-07-30T09:09:22Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=85655c74a4ded119392ea8b632626c3920042807'/>
<id>urn:sha1:85655c74a4ded119392ea8b632626c3920042807</id>
<content type='text'>
wayland 1.26 adds wl_fixes::ack_global_remove(). Clients should call
it when they've received a global_remove() event, after doing internal
cleanup.

Not tested yet:

* Waiting for arch to update wayland to 1.26
* None of the compositors I use (or test on) implement it yet.
</content>
</entry>
<entry>
<title>changelog: window urgency on notification activation without XDG token</title>
<updated>2026-08-06T10:57:08Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2026-08-06T10:57:08Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=a635e0a196d9adbe1088d03e08d3e312206c640d'/>
<id>urn:sha1:a635e0a196d9adbe1088d03e08d3e312206c640d</id>
<content type='text'>
</content>
</entry>
</feed>
