<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/foot.git/render.c, branch 1.5.0</title>
<subtitle>A fast, lightweight and minimalistic Wayland terminal emulator</subtitle>
<id>https://git.0x0f.dev/mirrors/foot.git/atom?h=1.5.0</id>
<link rel='self' href='https://git.0x0f.dev/mirrors/foot.git/atom?h=1.5.0'/>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/'/>
<updated>2020-09-17T15:37:58Z</updated>
<entry>
<title>render: fix rounding errors when setting initial window size and scale != 1</title>
<updated>2020-09-17T15:37:58Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-09-17T15:37:58Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=2e7102c9563370e5ad160c0f712c90966b4724ce'/>
<id>urn:sha1:2e7102c9563370e5ad160c0f712c90966b4724ce</id>
<content type='text'>
An odd cell width/height sometimes resulted in an odd grid
size. Combined with a scaling factor of e.g. 2, that led to a rounding
error when converting pixel sizes to logical window sizes.

As a result, the _next_ configure event would cause us to loose a
pixel, which led to us dropping a row from the grid.
</content>
</entry>
<entry>
<title>render: best-effort attempt to set initial window size in chars when scale != 1</title>
<updated>2020-09-14T15:36:56Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-09-14T15:34:04Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=fdfdbba9a050e36d371f7ece0310d3c62e0eb5d5'/>
<id>urn:sha1:fdfdbba9a050e36d371f7ece0310d3c62e0eb5d5</id>
<content type='text'>
The initial window size is set *before* we’re initially mapped. This
means we don’t (yet) know on which output we’ll be mapped. _That_
means we don’t know which scaling factor to use.

This implements a best effort attempt, where we use the “guessed”
scaling factor. This will always be correct in single-monitor
configurations, but may be wrong in multi-monitor setups with
different scaling factors.
</content>
</entry>
<entry>
<title>render: csd: hide buttons when title bar gets too small to fit them</title>
<updated>2020-09-10T05:37:54Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-09-09T16:43:23Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=3a308cc87048188690a633bcfdb107f1f7e452b6'/>
<id>urn:sha1:3a308cc87048188690a633bcfdb107f1f7e452b6</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add -W,--window-size-chars, and foot.ini:initial-window-size-chars</title>
<updated>2020-09-08T17:41:00Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-09-08T17:17:29Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=eb6737ca2593f457368ae16e920911cdd70a2e33'/>
<id>urn:sha1:eb6737ca2593f457368ae16e920911cdd70a2e33</id>
<content type='text'>
* Add -W,--window-size-chars command line option
* Add initial-window-size-chars foot.ini option
* Add -w,--window-size-pixels command line option
* Add initial-window-size-pixels foot.ini option
* Deprecate -g,--geometry command line option in favor of
  -w,--window-size-pixels
* Deprecate geometry option in foot.ini in favor of
  initial-window-size-pixels
</content>
</entry>
<entry>
<title>Merge branch 'tweak-damage-everything' into master</title>
<updated>2020-09-07T17:44:54Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-09-07T17:44:54Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=e81d23befc7377df0c977806fade093d151ff0da'/>
<id>urn:sha1:e81d23befc7377df0c977806fade093d151ff0da</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Merge branch 'reflow-multi-column-composed-characters' into master</title>
<updated>2020-09-07T17:41:42Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-09-07T17:41:42Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=19ec06b999c01f1838625fa8f691901d16a66607'/>
<id>urn:sha1:19ec06b999c01f1838625fa8f691901d16a66607</id>
<content type='text'>
</content>
</entry>
<entry>
<title>render: change minimum window size from 4x20 -&gt; 1x2 (rows/cols)</title>
<updated>2020-09-07T17:34:06Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-09-07T17:34:06Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=6e4d29ef71f798b3bbe10b91e0425865ddb6fe6f'/>
<id>urn:sha1:6e4d29ef71f798b3bbe10b91e0425865ddb6fe6f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>grid: reflow: calculate width of composed characters correctly</title>
<updated>2020-09-06T17:14:46Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-09-06T17:14:46Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=61f950f77ac52779b5fcf34c628df4caee791af4'/>
<id>urn:sha1:61f950f77ac52779b5fcf34c628df4caee791af4</id>
<content type='text'>
Before this patch, reflow called `wcwidth()` on our magic values for
composed characters.
</content>
</entry>
<entry>
<title>config: add tweak.damage-whole-window</title>
<updated>2020-09-06T15:52:07Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-09-06T15:52:07Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=d040284cc78e753a0c44c35d8446622d453d4674'/>
<id>urn:sha1:d040284cc78e753a0c44c35d8446622d453d4674</id>
<content type='text'>
When enabled, foot will ‘damage’ the entire window, instead of just
the modified/updated rows.

This will force the compositor to redraw/blend the whole window.

This can be used to workaround an issue with fractional scaling in
Gnome, where random thin lines may appear.
</content>
</entry>
<entry>
<title>render: optionally enable heuristics that deal with private usage area chars</title>
<updated>2020-09-03T15:37:44Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-09-03T15:37:44Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=b71016c25dc18a2c098a87439046873c6c9ddb30'/>
<id>urn:sha1:b71016c25dc18a2c098a87439046873c6c9ddb30</id>
<content type='text'>
Try to detect double-width *glyphs* for single-width *characters*, and
allow them to overflow into the next cell.

This is only done for single-width chars with a glyph width that is at
least 1.5 cells wide, but at most 3 cells.

The feature is gated by the new
‘tweak.allow-overflowing-double-width-glyphs’, and is disabled by
default.

Closes #116
</content>
</entry>
<entry>
<title>render: ’redraw_margins’ is now a parameter to grid_render()</title>
<updated>2020-09-01T06:01:48Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-09-01T06:01:48Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=b76d1965698d6c520b0b3c8733fa620d0eb193e0'/>
<id>urn:sha1:b76d1965698d6c520b0b3c8733fa620d0eb193e0</id>
<content type='text'>
render_refresh_margins() now passes ’true’ here, instead of re-setting
term-&gt;render.last_buf to NULL.
</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>Merge branch 'scrollback-indicator-positioning' into master</title>
<updated>2020-08-27T17:52:47Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-08-27T17:52:47Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=32e2173b5dc2b34606db56839fc50fad00655ceb'/>
<id>urn:sha1:32e2173b5dc2b34606db56839fc50fad00655ceb</id>
<content type='text'>
Closes #108
</content>
</entry>
<entry>
<title>render: scrollback indicator: only leave room for search box when necessary</title>
<updated>2020-08-26T17:12:12Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-08-26T17:12:12Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=c8d0dc5750adef034c6616491d9ba6eee5501992'/>
<id>urn:sha1:c8d0dc5750adef034c6616491d9ba6eee5501992</id>
<content type='text'>
</content>
</entry>
<entry>
<title>render: scrollback indicator: subtract visible rows from populated rows</title>
<updated>2020-08-26T17:10:00Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-08-26T17:10:00Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=1109865c8e892137152da802f028e30bcdd49aef'/>
<id>urn:sha1:1109865c8e892137152da802f028e30bcdd49aef</id>
<content type='text'>
This prevents the indicator from starting too high up when the number
of used scrollback rows is low.
</content>
</entry>
<entry>
<title>render: scrollback position: only count _used_ scrollback lines</title>
<updated>2020-08-25T16:45:04Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-08-25T16:39:50Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=cc24c5f2e0c74774add0113f0bea2ed6c5aab28e'/>
<id>urn:sha1:cc24c5f2e0c74774add0113f0bea2ed6c5aab28e</id>
<content type='text'>
When calculating where in the scrollback history we are, we previously
did this against the total number of scrollback lines. I.e. the
`scrollback.lines` setting in `footrc`.

Now, we count only the used/allocated scrollback lines.

Note that the initial indicator position might still seem to start a
bit high up, if the number of used scrollback lines is low. This is
because we use the *top* of the screen for the current position. Thus,
we'll never be at the bottom (except for the special case when
we're *really* at the bottom).
</content>
</entry>
<entry>
<title>don't use empty struct initializers</title>
<updated>2020-08-23T08:07:00Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-08-23T05:42:20Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=dabdffafa59f43314333be42aa519d7fff1b4498'/>
<id>urn:sha1:dabdffafa59f43314333be42aa519d7fff1b4498</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fix some spelling mistakes</title>
<updated>2020-08-15T18:39:00Z</updated>
<author>
<name>Craig Barnes</name>
<email>craigbarnes@protonmail.com</email>
</author>
<published>2020-08-15T18:39:00Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=104fe2fa55b113212899bea893a13fe7b3467156'/>
<id>urn:sha1:104fe2fa55b113212899bea893a13fe7b3467156</id>
<content type='text'>
</content>
</entry>
<entry>
<title>render: render the render timer *before* committing the main surface</title>
<updated>2020-08-14T05:52:08Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-08-14T05:52:08Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=b0d41324d679d93354f17c61d1aae461c2fee0d3'/>
<id>urn:sha1:b0d41324d679d93354f17c61d1aae461c2fee0d3</id>
<content type='text'>
</content>
</entry>
<entry>
<title>render: render-timer: position sub-surface similar to the scrollback indicator</title>
<updated>2020-08-14T05:48:40Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-08-14T05:48:40Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=640445acb48bceef6c1734248902bdb685d64869'/>
<id>urn:sha1:640445acb48bceef6c1734248902bdb685d64869</id>
<content type='text'>
</content>
</entry>
</feed>
