<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/foot.git/render.h, branch 1.5.1</title>
<subtitle>A fast, lightweight and minimalistic Wayland terminal emulator</subtitle>
<id>https://git.0x0f.dev/mirrors/foot.git/atom?h=1.5.1</id>
<link rel='self' href='https://git.0x0f.dev/mirrors/foot.git/atom?h=1.5.1'/>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/'/>
<updated>2020-10-11T17:23:04Z</updated>
<entry>
<title>render: remove render_refresh_margins()</title>
<updated>2020-10-11T17:23:04Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-09-29T08:08:59Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=af2873987ff20d86d7d587f005c2897e90a6f18f'/>
<id>urn:sha1:af2873987ff20d86d7d587f005c2897e90a6f18f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>render: implement render_refresh_margins()</title>
<updated>2020-09-01T05:33:44Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-09-01T05:33:44Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=2488c3935bbd0cb8e920f294b31deec13cfb89bd'/>
<id>urn:sha1:2488c3935bbd0cb8e920f294b31deec13cfb89bd</id>
<content type='text'>
For now, it will reset term-&gt;render.last_buf to NULL, and then calls
grid_render() to do a full screen refresh.
</content>
</entry>
<entry>
<title>multi-seat: improve handling of multiple (mouse) pointers</title>
<updated>2020-07-09T07:52:11Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-07-09T07:52:11Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=4e48d550efba98ebecf4b60045004e52c585c52d'/>
<id>urn:sha1:4e48d550efba98ebecf4b60045004e52c585c52d</id>
<content type='text'>
* xcursor always set for all pointers
* xcursor sometimes not updated when it should be
* mouse grabbed state wasn't per seat, but global (i.e. "does at least
  one seat enable mouse grabbing")
* selection enabled state wasn't per seat
</content>
</entry>
<entry>
<title>multi-seat: enable xcursor theme support again</title>
<updated>2020-07-08T16:08:39Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-07-08T16:08:39Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=be2490022d445bef2c5c00336aecf2bd9dd25ee7'/>
<id>urn:sha1:be2490022d445bef2c5c00336aecf2bd9dd25ee7</id>
<content type='text'>
</content>
</entry>
<entry>
<title>render: pace title updates</title>
<updated>2020-03-25T17:23:55Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-03-25T17:23:55Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=9bbbd26c7a2bad131b093cfd559a68fb59613af0'/>
<id>urn:sha1:9bbbd26c7a2bad131b093cfd559a68fb59613af0</id>
<content type='text'>
Synchronize window title updates with window rendering.
</content>
</entry>
<entry>
<title>render: never render CSD and/or search box "immediately"</title>
<updated>2020-03-06T18:16:54Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-03-06T18:16:54Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=c5a1af4e534f0f290ea885b221d7d37d020ac994'/>
<id>urn:sha1:c5a1af4e534f0f290ea885b221d7d37d020ac994</id>
<content type='text'>
Handle the CSDs and the search box the same way we handle the main
grid; when we need to redraw them, call
render_refresh_{csd,search}(). This sets a flag that is checked after
each FDM iteration. All actual rendering is done here.

This also ties the commits of the Wayland sub-surfaces to the commit
of the main surface.
</content>
</entry>
<entry>
<title>csd: initial implementation of minimize/maximize/close buttons</title>
<updated>2020-03-02T19:29:28Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-03-02T19:29:28Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=9699c9b8bfcbd7f9ebef5ee4ffe370cb03b1c8a2'/>
<id>urn:sha1:9699c9b8bfcbd7f9ebef5ee4ffe370cb03b1c8a2</id>
<content type='text'>
</content>
</entry>
<entry>
<title>render: csd: split up positioning from rendering</title>
<updated>2020-02-29T17:02:38Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-02-29T17:02:38Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=92d638eb1c34859a08605ffc79be8f0a4a3c63a3'/>
<id>urn:sha1:92d638eb1c34859a08605ffc79be8f0a4a3c63a3</id>
<content type='text'>
</content>
</entry>
<entry>
<title>render: render_resize_*() returns a boolean indicating whether size changed.</title>
<updated>2020-02-25T18:51:03Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-02-25T18:51:03Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=595b32ddf99d40fa5c51f7b3e0696a27cc6adb28'/>
<id>urn:sha1:595b32ddf99d40fa5c51f7b3e0696a27cc6adb28</id>
<content type='text'>
</content>
</entry>
<entry>
<title>render: export render_csd()</title>
<updated>2020-02-25T18:09:29Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-02-25T18:09:29Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=70ce7245c6fc4b1e19b03acf7b53400a81523258'/>
<id>urn:sha1:70ce7245c6fc4b1e19b03acf7b53400a81523258</id>
<content type='text'>
</content>
</entry>
<entry>
<title>render: add render_resize_force()</title>
<updated>2020-02-08T13:08:16Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-02-08T13:08:16Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=9e2ca2b1a3603b58a138ad99d5606df264cc163f'/>
<id>urn:sha1:9e2ca2b1a3603b58a138ad99d5606df264cc163f</id>
<content type='text'>
This forces a full resize operation, even though actual window
size (or scale) hasn't changed.
</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>render: trigger terminal refreshes in an FDM hook</title>
<updated>2020-01-04T18:49:26Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-01-04T18:49:26Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=99f471d738e0c2a0dcb61a559be3be512659d113'/>
<id>urn:sha1:99f471d738e0c2a0dcb61a559be3be512659d113</id>
<content type='text'>
In some cases, we end up calling render_refresh() multiple times in
the same FDM iteration. This means will render the first update
immediately, and then set the 'pending' flag, causing the updated
content to be rendered in the next frame.

This can cause flicker, or flashes, since we're presenting one or more
intermediate frames until the final content is shown.

Not to mention that it is inefficient to render multiple frames like
this.

Fix by:

* render_refresh() only sets a flag in the terminal

* install an FDM hook; this hook loops all terminals and executes what
  render_refresh() _used_ to do (that is, render immediately if we're
  not waiting for a frame callback, otherwise set 'pending' flag). for
  all terminals that have the 'refresh_needed' flag set.
</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>render: resize() now only calls refresh() if asked to</title>
<updated>2020-01-03T11:44:29Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-01-03T11:44:29Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=af26f043fb507c6aa4b6d7cf5dea39f3b9d3b234'/>
<id>urn:sha1:af26f043fb507c6aa4b6d7cf5dea39f3b9d3b234</id>
<content type='text'>
</content>
</entry>
<entry>
<title>render: attrs_to_font: const:ify</title>
<updated>2019-12-19T06:28:33Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-12-19T06:28:33Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=aabb7a7e8fc01fc5aa85fc08f451e1350ccb9f57'/>
<id>urn:sha1:aabb7a7e8fc01fc5aa85fc08f451e1350ccb9f57</id>
<content type='text'>
</content>
</entry>
<entry>
<title>wayland: move reload_cursor_theme() and update_cursor_surface() to wayland</title>
<updated>2019-10-27T18:36:45Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-10-27T18:36:45Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=957fb255594d634fdd1c2458546babd2b08114a0'/>
<id>urn:sha1:957fb255594d634fdd1c2458546babd2b08114a0</id>
<content type='text'>
</content>
</entry>
<entry>
<title>search: move render() function to the 'render' module</title>
<updated>2019-08-29T18:18:06Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-08-29T18:18:06Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=2c3ab701e7fc95f30b573b20873dc4dfb5c2fa66'/>
<id>urn:sha1:2c3ab701e7fc95f30b573b20873dc4dfb5c2fa66</id>
<content type='text'>
</content>
</entry>
<entry>
<title>render: reload cursor theme when scale (may) have changed</title>
<updated>2019-08-21T15:53:52Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-08-21T15:53:52Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=d5bc46f333523353fb9c84865a025b03c94417b4'/>
<id>urn:sha1:d5bc46f333523353fb9c84865a025b03c94417b4</id>
<content type='text'>
</content>
</entry>
<entry>
<title>output: track output we're mapped on, and use maximum scale</title>
<updated>2019-08-12T19:49:17Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-08-12T19:49:17Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=c2451e2a80cd72c17b8c29b51130adaad8dfe31f'/>
<id>urn:sha1:c2451e2a80cd72c17b8c29b51130adaad8dfe31f</id>
<content type='text'>
Our surface may be on multiple outputs at the same time. In this case,
we use the largest scale factor, and let the compositor down scale on
the "other" output(s).
</content>
</entry>
</feed>
