<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/foot.git/pgo/pgo.c, branch 1.14.0</title>
<subtitle>A fast, lightweight and minimalistic Wayland terminal emulator</subtitle>
<id>https://git.0x0f.dev/mirrors/foot.git/atom?h=1.14.0</id>
<link rel='self' href='https://git.0x0f.dev/mirrors/foot.git/atom?h=1.14.0'/>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/'/>
<updated>2022-10-18T16:31:18Z</updated>
<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>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: add stub for search_selection_cancelled()</title>
<updated>2021-07-23T08:15:35Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-07-23T08:15:35Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=f28193733555f95250a00ff0160277e2df025ecb'/>
<id>urn:sha1:f28193733555f95250a00ff0160277e2df025ecb</id>
<content type='text'>
Fixes PGO build failures caused by
251545203baa65364e491ddbe71ab3f8080bfe25

Closes #648
</content>
</entry>
<entry>
<title>pgo: fix PGO builds with clang</title>
<updated>2021-07-22T08:02:52Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-07-22T08:02:52Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=2acd4b34c57659d86dca76c58e4363de9b0a1f17'/>
<id>urn:sha1:2acd4b34c57659d86dca76c58e4363de9b0a1f17</id>
<content type='text'>
Add stubs for shm_chain_new(), shm_chain_free() and shm_unref(). This
fixes ‘pgo’ linking failures in the ‘generate’ phase when doing a PGO
build with clang.

Closes #642
</content>
</entry>
<entry>
<title>extract: move ‘strip_trailing_empty’ parameter from extra_finish() to extract_begin()</title>
<updated>2021-05-17T16:14:10Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-03-30T12:40:21Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=a6d9f01c0d1d914362b73eacd89e1e09877632cb'/>
<id>urn:sha1:a6d9f01c0d1d914362b73eacd89e1e09877632cb</id>
<content type='text'>
</content>
</entry>
<entry>
<title>pgo: add wayl_win_set_urgent() stub</title>
<updated>2021-05-14T11:26:13Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-05-11T05:56:04Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=bf44f3f5949a4c49b4c79763350eb0f08ced36f3'/>
<id>urn:sha1:bf44f3f5949a4c49b4c79763350eb0f08ced36f3</id>
<content type='text'>
</content>
</entry>
<entry>
<title>ime: move preedit state from terminal struct to the seat struct</title>
<updated>2021-03-25T08:36:07Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-03-23T12:03:07Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=e8ffb05bc7fb3b996752f345b77af4b757f69776'/>
<id>urn:sha1:e8ffb05bc7fb3b996752f345b77af4b757f69776</id>
<content type='text'>
This ensures different seat’s don’t step on each others IME pre-edit
state.

It also removes most dependencies on having a valid term pointer for
many IME operations.

We’re still not all the way, since we support disabling IME with a
private mode, which is per terminal, not seat.

Thus, we still require the seat to have keyboard focus on one of our
windows.

Closes #324. But note that *rendering* of multiple seat’s IME pre-edit
strings is still broken.
</content>
</entry>
<entry>
<title>fdm: add support for managing signals</title>
<updated>2021-02-11T17:55:21Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-02-10T15:17:36Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=863ae1143f9336f300c300c4d62165c3eac22834'/>
<id>urn:sha1:863ae1143f9336f300c300c4d62165c3eac22834</id>
<content type='text'>
Add fdm_signal_add() and fdm_signal_del(). Signals added to the fdm
will be monitored, and the provided callback called as “soon as
possible” from the main context (i.e not from the signal handler
context).

Monitored signals are *blocked* by default. We use epoll_pwait() to
unblock them while we’re polling. This allows us to do race-free
signal detection.

We use a single handler for all monitored signals; the handler simply
updates the signal’s slot in a global array (sized to fit SIGRTMAX
signals).

When epoll_pwait() returns EINTR, we loop the global array. The
callback associated with each signal that fired is called.
</content>
</entry>
<entry>
<title>urls: initial support for detecting URLs and rendering jump-labels</title>
<updated>2021-02-07T15:33:31Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-01-31T10:12:07Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=2cc84db97978388475504592c88911046bcd2eb6'/>
<id>urn:sha1:2cc84db97978388475504592c88911046bcd2eb6</id>
<content type='text'>
The jump labels work, but is currently hardcoded to use xdg-open
</content>
</entry>
<entry>
<title>shm: unbreak build without memfd_create</title>
<updated>2021-01-23T08:52:40Z</updated>
<author>
<name>Jan Beich</name>
<email>jbeich@FreeBSD.org</email>
</author>
<published>2021-01-19T14:20:55Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=db9dc7e90853208a28d48c8b52f4251118005007'/>
<id>urn:sha1:db9dc7e90853208a28d48c8b52f4251118005007</id>
<content type='text'>
New FreeBSD versions have memfd_create but other BSDs don't.

pgo/pgo.c:260:22: error: implicit declaration of function 'memfd_create' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
        int mem_fd = memfd_create("foot-pgo-ptmx", MFD_CLOEXEC);
                     ^
pgo/pgo.c:260:52: error: use of undeclared identifier 'MFD_CLOEXEC'
        int mem_fd = memfd_create("foot-pgo-ptmx", MFD_CLOEXEC);
                                                   ^
shm.c:13:10: fatal error: 'linux/mman.h' file not found
 #include &lt;linux/mman.h&gt;
          ^~~~~~~~~~~~~~
shm.c:277:15: error: implicit declaration of function 'memfd_create' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
    pool_fd = memfd_create("foot-wayland-shm-buffer-pool", MFD_CLOEXEC | MFD_ALLOW_SEALING);
              ^
shm.c:277:60: error: use of undeclared identifier 'MFD_CLOEXEC'
    pool_fd = memfd_create("foot-wayland-shm-buffer-pool", MFD_CLOEXEC | MFD_ALLOW_SEALING);
                                                           ^
shm.c:277:74: error: use of undeclared identifier 'MFD_ALLOW_SEALING'
    pool_fd = memfd_create("foot-wayland-shm-buffer-pool", MFD_CLOEXEC | MFD_ALLOW_SEALING);
                                                                         ^
shm.c:339:15: error: use of undeclared identifier 'F_SEAL_GROW'
              F_SEAL_GROW | F_SEAL_SHRINK | /*F_SEAL_FUTURE_WRITE |*/ F_SEAL_SEAL) &lt; 0)
              ^
shm.c:339:29: error: use of undeclared identifier 'F_SEAL_SHRINK'
              F_SEAL_GROW | F_SEAL_SHRINK | /*F_SEAL_FUTURE_WRITE |*/ F_SEAL_SEAL) &lt; 0)
                            ^
shm.c:339:71: error: use of undeclared identifier 'F_SEAL_SEAL'
              F_SEAL_GROW | F_SEAL_SHRINK | /*F_SEAL_FUTURE_WRITE |*/ F_SEAL_SEAL) &lt; 0)
                                                                      ^
shm.c:338:24: error: use of undeclared identifier 'F_ADD_SEALS'
    if (fcntl(pool_fd, F_ADD_SEALS,
                       ^
</content>
</entry>
</feed>
