<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/foot.git/terminal.c, branch 1.1.0</title>
<subtitle>A fast, lightweight and minimalistic Wayland terminal emulator</subtitle>
<id>https://git.0x0f.dev/mirrors/foot.git/atom?h=1.1.0</id>
<link rel='self' href='https://git.0x0f.dev/mirrors/foot.git/atom?h=1.1.0'/>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/'/>
<updated>2020-01-12T11:55:19Z</updated>
<entry>
<title>term: shorten application_synchronized_updates -&gt; app_sync_updates</title>
<updated>2020-01-12T11:55:19Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-01-12T11:55:19Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=1623fc0c0a9b7b86ae633776d84f2b56b158976a'/>
<id>urn:sha1:1623fc0c0a9b7b86ae633776d84f2b56b158976a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>term: enable_application_synchronized_updates: not a noop if already enabled</title>
<updated>2020-01-12T11:51:21Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-01-12T11:51:21Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=02c310d2417247f0cb700553a7b1ea4e500d8217'/>
<id>urn:sha1:02c310d2417247f0cb700553a7b1ea4e500d8217</id>
<content type='text'>
If synchronized updates are already enabled when we receive a request
to enable them, extend the timeout.
</content>
</entry>
<entry>
<title>term: app sync updates: disable delayed rendering timers once only</title>
<updated>2020-01-12T11:45:34Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-01-12T11:45:34Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=95d2ee0cc1f80e94d8420ad4d68a49527e4d1cc7'/>
<id>urn:sha1:95d2ee0cc1f80e94d8420ad4d68a49527e4d1cc7</id>
<content type='text'>
Disable the delayed rendering timers when enabling application
synchronized updates, not every time we've received ptmx data.
</content>
</entry>
<entry>
<title>term/render: move {enable,disable}_application_synchronized_updates()</title>
<updated>2020-01-12T11:43:28Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-01-12T11:43:28Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=bdf127fc7e26585cfddc73193751996033bbe88c'/>
<id>urn:sha1:bdf127fc7e26585cfddc73193751996033bbe88c</id>
<content type='text'>
From render -&gt; terminal
</content>
</entry>
<entry>
<title>render: add a timeout for application synchronized updates</title>
<updated>2020-01-12T11:40:42Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-01-12T11:40:42Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=afa1dbb7cc98277d8ee22e4bc5a2b3ee2c774662'/>
<id>urn:sha1:afa1dbb7cc98277d8ee22e4bc5a2b3ee2c774662</id>
<content type='text'>
This ensures we can recover from a crashing (or bad behaving)
application that sends a BSU but then never sends an ESU.
</content>
</entry>
<entry>
<title>term: rename refresh_prohibited -&gt; application_synchronized_updates</title>
<updated>2020-01-12T11:25:58Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-01-12T11:25:58Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=cb8a0260f347cd73c7942030aa2bd12f9355ab17'/>
<id>urn:sha1:cb8a0260f347cd73c7942030aa2bd12f9355ab17</id>
<content type='text'>
</content>
</entry>
<entry>
<title>term: ptmx: cancel, and don't re-arm, delay timers when refresh has been disabled</title>
<updated>2020-01-12T11:23:29Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-01-12T11:23:29Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=84f836c0c8d00978e52a45c7554f0a55b596ed8f'/>
<id>urn:sha1:84f836c0c8d00978e52a45c7554f0a55b596ed8f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>term/wayland: use MONOTONIC timers</title>
<updated>2020-01-10T20:33:40Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-01-10T20:33:40Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=5956faac01246521316282c26c875c21787c3add'/>
<id>urn:sha1:5956faac01246521316282c26c875c21787c3add</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Revert "terminal: use edge-triggered FDM handler for the PTY"</title>
<updated>2020-01-10T18:51:16Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-01-10T18:51:16Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=5bfc5604514316455e089da045ce59386b43ea12'/>
<id>urn:sha1:5bfc5604514316455e089da045ce59386b43ea12</id>
<content type='text'>
This reverts commit f5e27b49eb53ec64a592236680deee0c68c32f0f.
</content>
</entry>
<entry>
<title>terminal: make the event FD used to delay shutdown non-blocking</title>
<updated>2020-01-10T18:25:56Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-01-10T18:25:56Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=3762f1f20507ed4776c4650f7cd1c4a6c702f0af'/>
<id>urn:sha1:3762f1f20507ed4776c4650f7cd1c4a6c702f0af</id>
<content type='text'>
</content>
</entry>
<entry>
<title>terminal: use edge-triggered FDM handler for the PTY</title>
<updated>2020-01-10T18:24:45Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-01-10T18:24:45Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=f5e27b49eb53ec64a592236680deee0c68c32f0f'/>
<id>urn:sha1:f5e27b49eb53ec64a592236680deee0c68c32f0f</id>
<content type='text'>
This means that the read handler now has to keep reading until we get
EAGAIN.

But it also means we don't have to flip the EPOLLOUT flag in the FDM
handler back and forth when writing to the PTY.
</content>
</entry>
<entry>
<title>render: throttle xcursor updates</title>
<updated>2020-01-04T21:58:32Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-01-04T21:01:19Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=5ec447697c7548fc7930031077e821fd1e26b2f9'/>
<id>urn:sha1:5ec447697c7548fc7930031077e821fd1e26b2f9</id>
<content type='text'>
With a bad behaving client (e.g. 'less' with mouse support enabled),
we can end up with a *lot* of xcursor updates (so much, that we
flooded the wayland socket before we implemented a blocking
wayl_flush()).

Since there's little point in updating the cursor more than once per
frame interval, use frame callbacks to throttle the updates.

This works more or lesslike normal terminal refreshes:

render_xcursor_set() stores the last terminal (window) that had (and
updated) the cursor.

The renderer's FDM hook checks if we have such a pending terminal set,
and if so, tries to refresh the cursor.

This is done by first checking if we're already waiting for a callback
from a previous cursor update, and if so we do nothing; the callback
will update the cursor for the next frame. If we're *not* already
waiting for a callback, we update the cursor immediately.
</content>
</entry>
<entry>
<title>term: mouse_grabbed: ctrl may be pressed too (for block selection)</title>
<updated>2020-01-04T11:09:26Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-01-04T11:09:26Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=b7c970010d4a7d06215ac9a77e92d57ec2d593c6'/>
<id>urn:sha1:b7c970010d4a7d06215ac9a77e92d57ec2d593c6</id>
<content type='text'>
</content>
</entry>
<entry>
<title>wayland: don't use wl_display_dispatch()</title>
<updated>2020-01-03T20:02:12Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-01-03T20:02:12Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=0ea0323d0fb3130e5bc1782812e70993e5cdb742'/>
<id>urn:sha1:0ea0323d0fb3130e5bc1782812e70993e5cdb742</id>
<content type='text'>
wl_display_dispatch() calls poll(), which is unnecessary since we
already know the FD is readable.

Use the more lower level wl_display_read_events() +
wl_display_dispatch_pending().

These require wl_display_prepare_read() to have been called.

The idea is to call wl_display_prepare_read() **before** calling
poll().

Thus, we do this more or less last in wayl_init(), and at the **end**
of the FDM handler.

However, having taking this lock also means we no longer can call
wl_display_roundtrip() directly (it will hang).

So, add a wrapper, wayl_roundtrip(), that cancels the read intent,
does the roundtrip, and then re-acquires the read intent.
</content>
</entry>
<entry>
<title>term: init: don't resize if compositor has already resized us</title>
<updated>2020-01-03T18:31:09Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-01-03T18:31:09Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=ef3c7d7e0a329e664e36381327f5f0c51429287d'/>
<id>urn:sha1:ef3c7d7e0a329e664e36381327f5f0c51429287d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>term: no need to call render_refresh() when starting/stopping blink timer</title>
<updated>2020-01-03T18:27:57Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-01-03T18:27:57Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=782da0f8e91d9149ff5388be0d207573bb2486a4'/>
<id>urn:sha1:782da0f8e91d9149ff5388be0d207573bb2486a4</id>
<content type='text'>
</content>
</entry>
<entry>
<title>render: remove 'refresh' from render_resize()</title>
<updated>2020-01-03T12:56:10Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-01-03T12:56:10Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=d07fd7de39d588f79da307a9d112e445af86869a'/>
<id>urn:sha1:d07fd7de39d588f79da307a9d112e445af86869a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>wayland: window now keeps pointer to owning terminal, not wayland</title>
<updated>2020-01-03T12:37:03Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-01-03T12:37:03Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=9a0238bb524668c3ea24465943cd231167ae1428'/>
<id>urn:sha1:9a0238bb524668c3ea24465943cd231167ae1428</id>
<content type='text'>
</content>
</entry>
<entry>
<title>term: render_resize() now takes a 'refresh' argument</title>
<updated>2020-01-03T11:45:30Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-01-03T11:45:30Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=bd13c2c86a08189d6d5269616634a123f59bde9f'/>
<id>urn:sha1:bd13c2c86a08189d6d5269616634a123f59bde9f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>term: visual_focus_{in,out}: do nothing if already focused/defocused</title>
<updated>2020-01-03T10:19:56Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-01-03T10:19:56Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=80dfd5b6457a8f44be8b62af1e47284bb8e5c095'/>
<id>urn:sha1:80dfd5b6457a8f44be8b62af1e47284bb8e5c095</id>
<content type='text'>
</content>
</entry>
</feed>
