<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/foot.git/pgo, branch 1.16.1</title>
<subtitle>A fast, lightweight and minimalistic Wayland terminal emulator</subtitle>
<id>https://git.0x0f.dev/mirrors/foot.git/atom?h=1.16.1</id>
<link rel='self' href='https://git.0x0f.dev/mirrors/foot.git/atom?h=1.16.1'/>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/'/>
<updated>2023-07-18T03:48:22Z</updated>
<entry>
<title>pgo: add stub for wayl_fractional_scaling()</title>
<updated>2023-07-18T03:48:22Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2023-07-17T18:13:50Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=4a4f2b5dae6f7303e27d45a1d60aaefb7be2d7ba'/>
<id>urn:sha1:4a4f2b5dae6f7303e27d45a1d60aaefb7be2d7ba</id>
<content type='text'>
</content>
</entry>
<entry>
<title>pgo: update xcursor stubs to use enum instead of char pointer</title>
<updated>2023-07-03T12:36:32Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2023-06-27T16:16:33Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=803b250652d766cf08721e334215585f4fd72fb9'/>
<id>urn:sha1:803b250652d766cf08721e334215585f4fd72fb9</id>
<content type='text'>
</content>
</entry>
<entry>
<title>osc: update font subpixel mode, and window opaque compositor hint, on alpha changes</title>
<updated>2023-05-26T08:01:32Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2023-05-25T16:39:32Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=c51050a9bc16b231de964156cd3ffd20ee12569e'/>
<id>urn:sha1:c51050a9bc16b231de964156cd3ffd20ee12569e</id>
<content type='text'>
When background alpha is changed at runtime (using OSC-11), we (may)
have to update the opaque hint we send to the compositor.

We must also update the subpixel mode used when rendering font
glyphs.

Why?

When the window is fully opaque, we use wl_surface_set_opaque_region()
on the entire surface, to hint to the compositor that it doesn’t have
to blend the window content with whatever is behind the
window. Obviously, if alpha is changed from opaque, to transparent (or
semi-transparent), that hint must be removed.

Sub-pixel mode is harder to explain, but in short, we can’t do
subpixel hinting with a (semi-)transparent background. Thus, similar
to the opaque hint, subpixel antialiasing must be enabled/disabled
when background alpha is changed.
</content>
</entry>
<entry>
<title>build: fix GCC detection in pgo.sh</title>
<updated>2022-10-23T21:56:34Z</updated>
<author>
<name>Andrea Pappacoda</name>
<email>andrea@pappacoda.it</email>
</author>
<published>2022-10-23T21:56:34Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=1313e6352a442bfd7483f7b6e14308f2cabdc684'/>
<id>urn:sha1:1313e6352a442bfd7483f7b6e14308f2cabdc684</id>
<content type='text'>
On my system, GCC doesn't output its name when passing the --version
flag:

    $ cc --version
    cc (Debian 12.2.0-3) 12.2.0
    Copyright (C) 2022 Free Software Foundation, Inc.
    This is free software; see the source for copying conditions.  There is NO
    warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

As the Free Software Foundation is unlikely to write another compiler, I
think that searching for the foundation's name instead of GCC is a good
enough fix (and I'm almost sure we wouldn't be the first ones to do so).
</content>
</entry>
<entry>
<title>pgo: don’t re-use the rows between the ‘normal’ and ‘alt’ grids</title>
<updated>2022-10-18T16:31:18Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2022-10-18T16:31:18Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=3ba03901b893abcdb4433d71d0b6568abceba770'/>
<id>urn:sha1:3ba03901b893abcdb4433d71d0b6568abceba770</id>
<content type='text'>
This used to work because we never free:d any of the rows. Now
however, we do free (some of) them when reverse scrolling. This means
we can no longer re-use the rows between the two screens.

Closes #1196
</content>
</entry>
<entry>
<title>pgo: run xtgettcap without any arguments</title>
<updated>2022-10-10T15:18:04Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2022-10-10T15:18:04Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=a9fc7ce1806d92779da9931c804a88ac444344ab'/>
<id>urn:sha1:a9fc7ce1806d92779da9931c804a88ac444344ab</id>
<content type='text'>
We execute xtgettcap in the parent terminal. Thus we don’t know if it
implements XTGETTCAP, and thus it’s not guaranteed to exit - it may
hang indefinitely waiting for a reply.

Fix by not actually quering anything.
</content>
</entry>
<entry>
<title>pgo: execute xtgettcap utility, to get profiling data</title>
<updated>2022-10-07T19:47:56Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2022-10-07T19:47:56Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=503740f8365aa67197a8ef6f710852b5caec362c'/>
<id>urn:sha1:503740f8365aa67197a8ef6f710852b5caec362c</id>
<content type='text'>
Fixes:

  ../utils/xtgettcap.c:175:1: error: ‘/home/daniel/src/foot/src/utils/xtgettcap.p/xtgettcap.c.gcda’ profile count data file not found [-Werror=missing-profile]
</content>
</entry>
<entry>
<title>terminal: don’t unref a not-yet-referenced key-binding set</title>
<updated>2022-09-06T18:44:05Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2022-09-05T17:23:40Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=d2e67689ea0d5ec986b66936188e0557c1f04858'/>
<id>urn:sha1:d2e67689ea0d5ec986b66936188e0557c1f04858</id>
<content type='text'>
Key-binding sets are bound to a seat/configuration pair. The conf
reference is done when a new terminal instance is created.

When that same terminal instance is destroyed, the key binding set is
unref:ed.

If the terminal instance is destroyed *before* the key binding set has
been referenced, we’ll still unref it. This creates an imbalance.

In particular, when the there is exactly one other terminal instance
referencing that same key binding set, that terminal instance will
trigger a foot server crash as soon as it receives a key press/release
event. This happens because the next-to-last terminal instance brought
the reference count of the binding set down to 0, causing it to be
free:d.

Thus, we *must* reference the binding set *before* we can error
out (when instantiating a new terminal instance).

At this point, we don’t yet have a valid terminal instance. But,
that’s ok, because all the key_binding_new_for_term() did with the
terminal instance was get the "struct wayland" and "struct config"
pointers. So, rename the function and simply pass these pointers
explicitly.

Similarly, change key_binding_for() to take a "struct config" pointer,
rather than a "struct terminal" pointer.

Also rename key_binding_unref_term() -&gt; key_binding_unref().
</content>
</entry>
<entry>
<title>pgo: slave_spawn(): sync function signature</title>
<updated>2022-06-13T14:32:59Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2022-06-13T14:32:59Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=d3c51b51b7d4d8f32962ab634eec85316c1c3621'/>
<id>urn:sha1:d3c51b51b7d4d8f32962ab634eec85316c1c3621</id>
<content type='text'>
</content>
</entry>
<entry>
<title>pgo: add xdg_activation_token parameter to spawn() stub</title>
<updated>2022-05-06T08:39:49Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2022-05-06T08:39:49Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=f14fc120ad1fc618ac225b26d61f4f8459f84b95'/>
<id>urn:sha1:f14fc120ad1fc618ac225b26d61f4f8459f84b95</id>
<content type='text'>
</content>
</entry>
<entry>
<title>pgo: add missing stubs for key-binding functions</title>
<updated>2022-04-22T22:44:46Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2022-04-22T22:44:46Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=8ceb6e45a49ea414bf779adf1ba484c1dd5b5e7b'/>
<id>urn:sha1:8ceb6e45a49ea414bf779adf1ba484c1dd5b5e7b</id>
<content type='text'>
* key_binding_new_for_term()
* key_binding_unref_term()
</content>
</entry>
<entry>
<title>wayland: remove selection_override_modmask member</title>
<updated>2022-04-19T15:24:25Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2022-04-19T15:24:25Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=876044df8d5912f814423815dadd6c192f0cd644'/>
<id>urn:sha1:876044df8d5912f814423815dadd6c192f0cd644</id>
<content type='text'>
This member is no longer valid - we need to use one from the current
key-binding set.
</content>
</entry>
<entry>
<title>pgo: sync up stub version of slave_spawn()</title>
<updated>2022-04-12T13:23:41Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2022-04-12T13:23:41Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=a1796ba5cd1cc7b6ef03021d7db57503e445b5dd'/>
<id>urn:sha1:a1796ba5cd1cc7b6ef03021d7db57503e445b5dd</id>
<content type='text'>
</content>
</entry>
<entry>
<title>pgo: fix selection.{start,end} initializers</title>
<updated>2022-04-10T16:31:13Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2022-04-10T16:31:13Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=d1a072d67de612a70954ce9dbd791638e9ee6ec2'/>
<id>urn:sha1:d1a072d67de612a70954ce9dbd791638e9ee6ec2</id>
<content type='text'>
This fixes a regression introduced in
5b1f1602bccfb7c37e50a8509f44b24e9aa3b5d1
</content>
</entry>
<entry>
<title>pgo: add stub for render_xcursor_is_valid</title>
<updated>2022-02-07T16:45:07Z</updated>
<author>
<name>Ashish SHUKLA</name>
<email>ashish.is@lostca.se</email>
</author>
<published>2022-02-07T15:01:20Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=91559fe48012da7b521a331c5c06da1cee628a0f'/>
<id>urn:sha1:91559fe48012da7b521a331c5c06da1cee628a0f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>pgo: stub get_current_modifiers()</title>
<updated>2021-12-04T17:29:58Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-12-04T17:29:58Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=81233e092ce655942d28d61f683ea5a9b11accab'/>
<id>urn:sha1:81233e092ce655942d28d61f683ea5a9b11accab</id>
<content type='text'>
</content>
</entry>
<entry>
<title>pgo: add stub for xcursor_for_csd_border()</title>
<updated>2021-11-30T21:43:41Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-11-30T21:43:41Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=1752745fcfcce6ad0ad540e006a39640ef6fc432'/>
<id>urn:sha1:1752745fcfcce6ad0ad540e006a39640ef6fc432</id>
<content type='text'>
</content>
</entry>
<entry>
<title>foot/client: implement xdga client activation</title>
<updated>2021-11-01T01:52:29Z</updated>
<author>
<name>Ronan Pigott</name>
<email>rpigott@berkeley.edu</email>
</author>
<published>2021-10-29T00:51:44Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=99d5bf64bca5daa70e3e8c5a4d63a257ba7e6fb8'/>
<id>urn:sha1:99d5bf64bca5daa70e3e8c5a4d63a257ba7e6fb8</id>
<content type='text'>
This is an application of the xdg activation protocol that will allow
compositors to associate new foot toplevels with the command that
launched them.

footclient receives an activation token from the launcher which the
compositor can use to track application startup. It passes the token
to the foot server, which then activates the new window with the token
to complete the startup sequence.
</content>
</entry>
<entry>
<title>pgo: full-inner: add --override tweak.grapheme-shaping=no</title>
<updated>2021-10-16T14:58:59Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-10-16T14:58:59Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=d4b365b55c98ab1cccc2c08677ced04cd5438327'/>
<id>urn:sha1:d4b365b55c98ab1cccc2c08677ced04cd5438327</id>
<content type='text'>
Grapheme shaping is now enabled by default in foot. However, when
generating the profiling data in PGO builds, this results in skewed
optimizations.

The end result is worse benchmark results regardless of whether
grapheme-shaping is enabled or not (when running the benchmarks).
</content>
</entry>
<entry>
<title>pgo: Use pixman renderer by default for PGO builds</title>
<updated>2021-10-08T14:34:36Z</updated>
<author>
<name>Stanislav Ochotnický</name>
<email>sochotnicky@redhat.com</email>
</author>
<published>2021-10-08T14:28:28Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=85aaff68fbda7c84f95ab4f20da1e907c0657e01'/>
<id>urn:sha1:85aaff68fbda7c84f95ab4f20da1e907c0657e01</id>
<content type='text'>
Without pixman renderer override pgo builds in cage/sway require
access to actual render devices. In Gentoo's case the builds are run
as ordinary user and within a "sandbox" which prevents and logs access
outside of predefined places during build.

So let's default to pixman renderer for the PGO builds. Hopefully that
won't matter for the pgo optimizations to do the right thing within foot.
</content>
</entry>
</feed>
