<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/foot.git/wayland.c, branch 1.7.0</title>
<subtitle>A fast, lightweight and minimalistic Wayland terminal emulator</subtitle>
<id>https://git.0x0f.dev/mirrors/foot.git/atom?h=1.7.0</id>
<link rel='self' href='https://git.0x0f.dev/mirrors/foot.git/atom?h=1.7.0'/>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/'/>
<updated>2021-02-25T06:46:21Z</updated>
<entry>
<title>wayland: rename variable ‘main’ to ‘main_surface’</title>
<updated>2021-02-25T06:46:21Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-02-25T06:46:21Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=3149ef16c318c0e787392be3a042d864fd604ffa'/>
<id>urn:sha1:3149ef16c318c0e787392be3a042d864fd604ffa</id>
<content type='text'>
Some compilers don’t think we know what we’re doing:

  ../wayland.c:1554:24: error: ‘main’ is usually a function
</content>
</entry>
<entry>
<title>wayland: csd_instantiate(): remove TODO</title>
<updated>2021-02-17T20:48:39Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-02-17T20:48:39Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=7b5a43bcbd4f6e1f49bd7b65ad37ba4994f2e70d'/>
<id>urn:sha1:7b5a43bcbd4f6e1f49bd7b65ad37ba4994f2e70d</id>
<content type='text'>
The sub-surfaces are working just fine without the initial commit.
</content>
</entry>
<entry>
<title>wayland: drop ‘_surface’ suffix from subsurface struct instances</title>
<updated>2021-02-17T20:48:08Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-02-12T11:00:40Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=5c8579043dd22a08e872d90a20011f5d6d8d3dc1'/>
<id>urn:sha1:5c8579043dd22a08e872d90a20011f5d6d8d3dc1</id>
<content type='text'>
</content>
</entry>
<entry>
<title>render-timer: use wayl_win_subsurface_new/destroy()</title>
<updated>2021-02-17T20:48:08Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-02-12T10:53:22Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=438853a2d8b6479a2fbbd82d9ef59dbefbc9d297'/>
<id>urn:sha1:438853a2d8b6479a2fbbd82d9ef59dbefbc9d297</id>
<content type='text'>
</content>
</entry>
<entry>
<title>scrollback-indicator: use wayl_win_subsurface_new/destroy()</title>
<updated>2021-02-17T20:48:08Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-02-12T10:50:43Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=c8324943de5cb56f480e2a3477f6b129054ff2b4'/>
<id>urn:sha1:c8324943de5cb56f480e2a3477f6b129054ff2b4</id>
<content type='text'>
</content>
</entry>
<entry>
<title>search: use wayl_win_subsurface_new/destroy()</title>
<updated>2021-02-17T20:48:07Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-02-12T10:47:49Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=e049124f6d57fb2fd444138ec588b5b3cab80ecc'/>
<id>urn:sha1:e049124f6d57fb2fd444138ec588b5b3cab80ecc</id>
<content type='text'>
</content>
</entry>
<entry>
<title>csd: use wayl_win_subsurface_new/destroy()</title>
<updated>2021-02-17T20:48:07Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-02-12T10:39:25Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=587f04f2e1fd432993cecf75fe4ffd23c9b2b243'/>
<id>urn:sha1:587f04f2e1fd432993cecf75fe4ffd23c9b2b243</id>
<content type='text'>
</content>
</entry>
<entry>
<title>url-mode: convert struct wl_url to use wayl_win_subsurface_new()</title>
<updated>2021-02-17T20:48:07Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-02-12T10:31:31Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=9d362158e3810bc0cbfe1990238e2abd3786e4c1'/>
<id>urn:sha1:9d362158e3810bc0cbfe1990238e2abd3786e4c1</id>
<content type='text'>
</content>
</entry>
<entry>
<title>wayland: add wayl_win_subsurface_new() and wayl_win_subsurface_destroy()</title>
<updated>2021-02-17T20:47:57Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-02-12T10:29:36Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=bb4d9a5fd33cf1a7c08c096721e5640022de0315'/>
<id>urn:sha1:bb4d9a5fd33cf1a7c08c096721e5640022de0315</id>
<content type='text'>
These are utility functions to create a Wayland subsurface associated
with the window.
</content>
</entry>
<entry>
<title>Merge branch 'refactor-key-bindings'</title>
<updated>2021-02-08T17:57:17Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-02-08T17:57:17Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=79e054faff0d6d49d44ef0c1c052387eb66581d0'/>
<id>urn:sha1:79e054faff0d6d49d44ef0c1c052387eb66581d0</id>
<content type='text'>
</content>
</entry>
<entry>
<title>misc: when free:ing tll lists, prefer tll_remove() over tll_free()</title>
<updated>2021-02-08T09:09:59Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-02-07T13:52:04Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=4bad85b59334467ac839ed2dd91abb6625bc5b89'/>
<id>urn:sha1:4bad85b59334467ac839ed2dd91abb6625bc5b89</id>
<content type='text'>
In many places we have the following pattern:

  tll_foreach(list, it)
     free(it-&gt;item.thing);
  tll_free(list);

Since all tll functions are macros, and thus inlined, and since
tll_free in itself expands to a tll_foreach(), the above pattern
expands to more native code than necessary.

This is somewhat smaller:

  tll_foreach(list, it) {
      free(it-&gt;item.thing);
      tll_remove(list, it);
  }
</content>
</entry>
<entry>
<title>key-bindings: refactor: use a single type for all key bindings</title>
<updated>2021-02-08T09:09:14Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-02-07T13:46:29Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=03bac9dada76690971943f824637407100f7a3ee'/>
<id>urn:sha1:03bac9dada76690971943f824637407100f7a3ee</id>
<content type='text'>
Up until now, the various key binding modes (“normal”, “search” and
“url”) have used their own struct definitions for their key bindings.

The only reason for this was to have a properly typed “action” (using
the appropriate “action” enum).

This caused lots of duplicated code. This patch refactors this to use
a single struct definition for the “unparsed” key bindings handled by
the configuration, and another single definition for “parsed” bindings
used while handling input.

This allows us to implement configuration parsing, keymap translation
and so on using one set of functions, regardless of key binding mode.
</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>config: free URL bindings</title>
<updated>2021-02-07T15:33:31Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-01-30T14:42:51Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=b255aea3edc4be75226e6ae6807d2a31ca42aeba'/>
<id>urn:sha1:b255aea3edc4be75226e6ae6807d2a31ca42aeba</id>
<content type='text'>
</content>
</entry>
<entry>
<title>render: don’t center content while doing an interactive resize</title>
<updated>2021-01-26T18:32:07Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-01-18T08:50:23Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=b4f1f72585df8fbc583b9cb7f168a971cffc5e02'/>
<id>urn:sha1:b4f1f72585df8fbc583b9cb7f168a971cffc5e02</id>
<content type='text'>
</content>
</entry>
<entry>
<title>render: delay TIOCSWINSZ while doing an interactive resize</title>
<updated>2021-01-26T18:32:06Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-01-17T15:12:54Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=9a1df7bb036cffbef206a3f2dbe46559b6f15d89'/>
<id>urn:sha1:9a1df7bb036cffbef206a3f2dbe46559b6f15d89</id>
<content type='text'>
Instead of disabling content centering, delay the TIOCSWINSZ (a.k.a
delay sending the new dimensions to the client) by a small amount
while doing an interactive resize.

Non-interactive resizes are still immediate.

For now, force a resize when the user stops the interactive
resize. This ensures the client application receives the new
dimensions immediately.

It still works without the last, forced, resize, but there typically
be a small delay until the client application receives the final
dimensions.

Closes #301
Closes #283
</content>
</entry>
<entry>
<title>wayland: force a resize on the final configure event after an interactive resize</title>
<updated>2021-01-26T18:32:06Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-01-10T14:41:01Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=773b61eb79fec9966d5ccd01dccf35b02ff7a7b2'/>
<id>urn:sha1:773b61eb79fec9966d5ccd01dccf35b02ff7a7b2</id>
<content type='text'>
This is needed to apply content centering after an interactive resize,
as otherwise we’d just ignore the last configure event since the only
difference between that event and the next to last event is that the
is-resizing bit has been cleared. I.e. the window size is identical to
what we already have, and our resize code would thus ignore the event.
</content>
</entry>
<entry>
<title>wayland: track is-resizing state</title>
<updated>2021-01-26T18:32:06Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-01-10T14:40:11Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=4ebd58e38888939d221d5616debc2e72dcfb4516'/>
<id>urn:sha1:4ebd58e38888939d221d5616debc2e72dcfb4516</id>
<content type='text'>
</content>
</entry>
<entry>
<title>debug: rename assert() to xassert(), to avoid clashing with &lt;assert.h&gt;</title>
<updated>2021-01-16T20:16:00Z</updated>
<author>
<name>Craig Barnes</name>
<email>craigbarnes@protonmail.com</email>
</author>
<published>2021-01-16T20:16:00Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=e56136ce1192d04a52b01ccb41284f0b7896430e'/>
<id>urn:sha1:e56136ce1192d04a52b01ccb41284f0b7896430e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>wayland: take rotation into account when calculating the logical PPI</title>
<updated>2021-01-11T16:53:27Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-01-11T16:53:27Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=deaff095c6b4babac43b53c6b25721deb6ef78aa'/>
<id>urn:sha1:deaff095c6b4babac43b53c6b25721deb6ef78aa</id>
<content type='text'>
</content>
</entry>
</feed>
