<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/foot.git, branch 1.8.2</title>
<subtitle>A fast, lightweight and minimalistic Wayland terminal emulator</subtitle>
<id>https://git.0x0f.dev/mirrors/foot.git/atom?h=1.8.2</id>
<link rel='self' href='https://git.0x0f.dev/mirrors/foot.git/atom?h=1.8.2'/>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/'/>
<updated>2021-07-18T15:58:05Z</updated>
<entry>
<title>meson/pkgbuild: bump version to 1.8.2</title>
<updated>2021-07-18T15:58:05Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-07-18T15:58:05Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=cd8c96d746f7a584be9b15423a566b6e5c0117ed'/>
<id>urn:sha1:cd8c96d746f7a584be9b15423a566b6e5c0117ed</id>
<content type='text'>
</content>
</entry>
<entry>
<title>changelog: prepare for 1.8.2</title>
<updated>2021-07-18T15:57:42Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-07-18T15:57:42Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=721174ffea86582ccde14e8f32424f99564a08c1'/>
<id>urn:sha1:721174ffea86582ccde14e8f32424f99564a08c1</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Merge branch 'master' into releases/1.8</title>
<updated>2021-07-18T15:57:11Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-07-18T15:57:11Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=4d82e048606d325771fbfcd930060532aab4c940'/>
<id>urn:sha1:4d82e048606d325771fbfcd930060532aab4c940</id>
<content type='text'>
</content>
</entry>
<entry>
<title>changelog: remove entries that are no longer relevant</title>
<updated>2021-07-18T15:16:17Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-07-18T15:16:17Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=318385040c4af386e944e009bec839a9161defb6'/>
<id>urn:sha1:318385040c4af386e944e009bec839a9161defb6</id>
<content type='text'>
The tweak.allow-overflowing-double-width-glyphs option have been
superseded by tweak.overflowing-glyphs.
</content>
</entry>
<entry>
<title>Merge branch 'csd-shared-shm-pool'</title>
<updated>2021-07-18T15:13:03Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-07-18T15:13:03Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=e6b13af59dd195564587416f513aa02a43cb8171'/>
<id>urn:sha1:e6b13af59dd195564587416f513aa02a43cb8171</id>
<content type='text'>
</content>
</entry>
<entry>
<title>render: use a single backing SHM pool for CSD surface buffers</title>
<updated>2021-07-18T14:46:43Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-07-18T14:46:43Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=20fc80e57e365f2e002eead7de110cb23ffa7adc'/>
<id>urn:sha1:20fc80e57e365f2e002eead7de110cb23ffa7adc</id>
<content type='text'>
</content>
</entry>
<entry>
<title>shm: get_many(): allow “NULL” buffers - buffers where width or height is 0</title>
<updated>2021-07-18T14:44:49Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-07-18T14:44:49Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=5b6a2b0eaff1ffef84d728a6c76c044c7f01a1d8'/>
<id>urn:sha1:5b6a2b0eaff1ffef84d728a6c76c044c7f01a1d8</id>
<content type='text'>
When a zero-sized buffer is requested, simply return a NULL buffer,
instead of crashing with a Wayland protocol error.

This makes it easier to request many buffers, where some may be
zero-sized, without having to pack the width/height and bufs arrays.
</content>
</entry>
<entry>
<title>term: erase_scrollback(): destroy sixels that touch the scrollback</title>
<updated>2021-07-18T14:31:33Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-07-18T14:31:33Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=e8e9cd559529b91968af9f776df8b87751df7b97'/>
<id>urn:sha1:e8e9cd559529b91968af9f776df8b87751df7b97</id>
<content type='text'>
</content>
</entry>
<entry>
<title>sixel: destroy(): don’t unref a NULL pixman image</title>
<updated>2021-07-18T14:30:42Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-07-18T14:30:42Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=f65e062ce4defaa647b43927e462eaf2d683942b'/>
<id>urn:sha1:f65e062ce4defaa647b43927e462eaf2d683942b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Merge branch 'crash-when-selection-is-in-scrollback-and-scrollback-is-erased'</title>
<updated>2021-07-18T14:15:18Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-07-18T14:15:18Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=a577496f8f8ee55099bc47a58fc7c94d354d6602'/>
<id>urn:sha1:a577496f8f8ee55099bc47a58fc7c94d354d6602</id>
<content type='text'>
Closes #633
</content>
</entry>
<entry>
<title>changelog: crash when \E[3J was executed with a selection in the scrollback</title>
<updated>2021-07-18T14:14:25Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-07-18T13:38:46Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=7d8884fec4fac371430cb2f0ba85a9d09e3cd171'/>
<id>urn:sha1:7d8884fec4fac371430cb2f0ba85a9d09e3cd171</id>
<content type='text'>
</content>
</entry>
<entry>
<title>term: add unit test for term_erase_scrollback()</title>
<updated>2021-07-18T14:14:25Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-07-18T13:34:19Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=d0a7f999c662759d1704d97d5217736e84f508c1'/>
<id>urn:sha1:d0a7f999c662759d1704d97d5217736e84f508c1</id>
<content type='text'>
</content>
</entry>
<entry>
<title>csi: erase scrollback: cancel selection if it touches the scrollback</title>
<updated>2021-07-18T14:14:21Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-07-16T14:45:36Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=5f0ceb72f176caf7673ea1d4bc5195f26f4b4df7'/>
<id>urn:sha1:5f0ceb72f176caf7673ea1d4bc5195f26f4b4df7</id>
<content type='text'>
This breaks out the scrollback erasing logic for \E[3J from csi.c, and
moves it to the new function term_erase_scrollback(), and changes the
logic to calculate the start and end row (absolute) numbers of the
scrollback, and only iterate those, instead of iterating *all* rows,
filtering out those that are on-screen.

It also adds an intersection range check of the selection range, and
cancels the selection if it touches any of the deleted scrollback
rows.

This fixes a crash when trying to render the next frame, since the
selection now references rows that have been freed.

Closes #633
</content>
</entry>
<entry>
<title>Merge branch 'refactor-shm-buffer-management'</title>
<updated>2021-07-18T09:41:14Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-07-18T09:41:14Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=34de799f90780097a6754e46efe302dcd3ec6eae'/>
<id>urn:sha1:34de799f90780097a6754e46efe302dcd3ec6eae</id>
<content type='text'>
</content>
</entry>
<entry>
<title>shm: chain_free: BUG() if there are buffers remaining after purge</title>
<updated>2021-07-17T17:14:42Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-07-16T14:49:52Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=6657146a207834ac44425c01703935dee6d61d41'/>
<id>urn:sha1:6657146a207834ac44425c01703935dee6d61d41</id>
<content type='text'>
There may be buffers left, if their destruction has been
deferred. However, they should be on the 'deferred' list, not the
chain's buffer list.

If there are buffers left on the chain's list, that means someone
forgot to call shm_unref().
</content>
</entry>
<entry>
<title>shm: get_buffer: purge mismatching buffers in first buffer iteration</title>
<updated>2021-07-17T17:14:42Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-07-16T14:49:27Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=0751172b922e32a9c6d54b52e721c934cb88fe9f'/>
<id>urn:sha1:0751172b922e32a9c6d54b52e721c934cb88fe9f</id>
<content type='text'>
There's no longer any need to defer purging of mismatching buffer
(i.e. buffers whose width/height doesn't match the requested ones) to
after the cache lookup loop.
</content>
</entry>
<entry>
<title>shm: refactor: move away from a single, global, buffer list</title>
<updated>2021-07-17T17:14:42Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-07-16T14:48:49Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=53851e13ec976001cdec2077d7963c292bcd6d20'/>
<id>urn:sha1:53851e13ec976001cdec2077d7963c292bcd6d20</id>
<content type='text'>
Up until now, *all* buffers have been tracked in a single, global
buffer list. We've used 'cookies' to separate buffers from different
contexts (so that shm_get_buffer() doesn't try to re-use e.g. a
search-box buffer for the main grid).

This patch refactors this, and completely removes the global
list.

Instead of cookies, we now use 'chains'. A chain tracks both the
properties to apply to newly created buffers (scrollable, number of
pixman instances to instantiate etc), as well as the instantiated
buffers themselves.

This means there's strictly speaking not much use for shm_fini()
anymore, since its up to the chain owner to call shm_chain_free(),
which will also purge all buffers.

However, since purging a buffer may be deferred, if the buffer is
owned by the compositor at the time of the call to shm_purge() or
shm_chain_free(), we still keep a global 'deferred' list, on to which
deferred buffers are pushed. shm_fini() iterates this list and
destroys the buffers _even_ if they are still owned by the
compositor. This only happens at program termination, and not when
destroying a terminal instance. I.e. closing a window in a “foot
--server” does *not* trigger this.

Each terminal instatiates a number of chains, and these chains are
destroyed when the terminal instance is destroyed. Note that some
buffers may be put on the deferred list, as mentioned above.
</content>
</entry>
<entry>
<title>shm: remove deferred buffers from main list immediately</title>
<updated>2021-07-17T17:14:42Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-07-16T14:48:18Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=4efb34927eb46d8b12fc0d5638653cf23839d7dc'/>
<id>urn:sha1:4efb34927eb46d8b12fc0d5638653cf23839d7dc</id>
<content type='text'>
When unref:ing a "busy" buffer, destruction is (still) deferred to the
buffer release event.

However, we now move the buffer off the buffer list immediately, and
instead push it to a 'deferred' list. This prevents buffer re-use of
buffers scheduled for destruction.

It also means less buffers to iterate through when trying to find a
re-usable buffer in shm_get_buffer(), since we no longer have to wade
through a potentially long list of to-be-deleted buffers.
</content>
</entry>
<entry>
<title>shm: replace 'locked' attribute with a ref-counter</title>
<updated>2021-07-17T17:14:42Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-07-16T14:47:57Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=232fb20269b68157874f57d676c1b0b95c2386aa'/>
<id>urn:sha1:232fb20269b68157874f57d676c1b0b95c2386aa</id>
<content type='text'>
The initial ref-count is either 1 or 0, depending on whether the
buffer is supposed to be released "immeidately" (meaning, as soon as
the compositor releases it).

Two new user facing functions have been added: shm_addref() and
shm_unref().

Our renderer now uses these two functions instead of manually setting
and clearing the 'locked' attribute.

shm_unref() will decrement the ref-counter, and destroy the buffer
when the counter reaches zero. Except if the buffer is currently
"busy" (compositor owned), in which case destruction is deferred to
the release event. The buffer is still removed from the list though.
</content>
</entry>
<entry>
<title>shm: we may exit with busy buffers remaining (seen on KDE)</title>
<updated>2021-07-17T17:14:41Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-07-16T14:47:15Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=69260dd9604f39f5e7270ac44502c7e60618500b'/>
<id>urn:sha1:69260dd9604f39f5e7270ac44502c7e60618500b</id>
<content type='text'>
</content>
</entry>
</feed>
