<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/foot.git/render.c, branch 1.5.3</title>
<subtitle>A fast, lightweight and minimalistic Wayland terminal emulator</subtitle>
<id>https://git.0x0f.dev/mirrors/foot.git/atom?h=1.5.3</id>
<link rel='self' href='https://git.0x0f.dev/mirrors/foot.git/atom?h=1.5.3'/>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/'/>
<updated>2020-11-06T19:08:52Z</updated>
<entry>
<title>tiocswinsz: fix compilation error on e.g. ppc64</title>
<updated>2020-11-06T19:08:52Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-10-29T17:06:04Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=273f105af5861e35f58b6a37e9b1b576dd9adaec'/>
<id>urn:sha1:273f105af5861e35f58b6a37e9b1b576dd9adaec</id>
<content type='text'>
On some platforms, TIOCSWINSZ has a very large value, &gt;
0x80000000.

On some platforms, the `request` argument to `ioctl(3)` is an `int`.

For platforms where both of the above is true, gcc will warn (and
error out if compiled with `-Werror`) on:

  ioctl(fd, TIOCSWINSZ, ...)

To silence this warning, we need to cast `TIOCSWINSZ` to an
integer.

However, doing this on platforms where `request` is an `unsigned long`
will result in `TIOCSWINSZ` being sign-extended (and thus we end up
with an invalid value).

It seems that casting to `unsigned int` works in both cases; it
silences the long -&gt; int conversion warning, while also preserving the
correct value in all cases.
</content>
</entry>
<entry>
<title>wayland: properly restore window size when being un-tiled</title>
<updated>2020-11-06T19:07:59Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-10-20T18:58:03Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=ebd4a32768ba1e587fb884b58819605f4ef87c18'/>
<id>urn:sha1:ebd4a32768ba1e587fb884b58819605f4ef87c18</id>
<content type='text'>
Bind to xdg-shell version 2 if available, as this enables us to
track our window’s ‘tiled’ state in the ‘configure’ events.

This in turn allows us to stash the ‘old’ window size when being
tiled, to be used again when restoring the window size when un-tiled.
</content>
</entry>
<entry>
<title>render: resize: call sixel_reflow() after reflowing grids</title>
<updated>2020-10-11T17:25:39Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-10-04T11:14:09Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=e19ee5f4d16f4cba0c093e8f49454939a6035bae'/>
<id>urn:sha1:e19ee5f4d16f4cba0c093e8f49454939a6035bae</id>
<content type='text'>
</content>
</entry>
<entry>
<title>render: apply opacity correctly when in reverse video mode</title>
<updated>2020-10-11T17:24:50Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-10-08T17:53:11Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=a53e8c28661f3267555a3e06ce7ef3b90a9cfbe1'/>
<id>urn:sha1:a53e8c28661f3267555a3e06ce7ef3b90a9cfbe1</id>
<content type='text'>
</content>
</entry>
<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: term-&gt;render.margins is used to explicitly tell us to re-render margins</title>
<updated>2020-10-11T17:23:00Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-09-29T08:04:41Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=97f20b4dd6d9e6e194279dc4219548b3daac4df8'/>
<id>urn:sha1:97f20b4dd6d9e6e194279dc4219548b3daac4df8</id>
<content type='text'>
</content>
</entry>
<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>
</feed>
