<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/foot.git/wayland.c, branch 1.3.0</title>
<subtitle>A fast, lightweight and minimalistic Wayland terminal emulator</subtitle>
<id>https://git.0x0f.dev/mirrors/foot.git/atom?h=1.3.0</id>
<link rel='self' href='https://git.0x0f.dev/mirrors/foot.git/atom?h=1.3.0'/>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/'/>
<updated>2020-05-12T16:35:28Z</updated>
<entry>
<title>wayland: force-trigger a resize on 'configured' event</title>
<updated>2020-05-12T16:35:28Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-05-12T16:35:28Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=6d0f8e52cb3dee31fa1e4a4b595f02b77f9abac6'/>
<id>urn:sha1:6d0f8e52cb3dee31fa1e4a4b595f02b77f9abac6</id>
<content type='text'>
This ensures we _always_ commit a **new** buffer in response to a
configured event.

This fixes an issue in Gnome where e.g. tiling the window (on the
left/right side) only worked if that caused the windows size to
change.
</content>
</entry>
<entry>
<title>util.h: new header file defining commonly used macros</title>
<updated>2020-05-01T09:46:24Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-05-01T09:46:24Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=69c3e744983e37662fa7b4f61482fb1d142e257c'/>
<id>urn:sha1:69c3e744983e37662fa7b4f61482fb1d142e257c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>term: don't enable ptmx FDM callback until Wayland window has been configured</title>
<updated>2020-04-30T15:22:57Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-04-30T15:22:57Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=fc2e385d876f53b260d1f8d80db2517b9f2e6e80'/>
<id>urn:sha1:fc2e385d876f53b260d1f8d80db2517b9f2e6e80</id>
<content type='text'>
The way things works right now, we cannot enable the ptmx FDM callback
right away. We need to wait for the Wayland window to have been
configured.

Before the window is configured, we don't have a size, and no
grid. Thus, if we try to process ptmx data we'll crash since we have
no where to write it to.

So, registering the ptmx fd with the FDM is now delayed until we've
received the first 'configure' event from Wayland.
</content>
</entry>
<entry>
<title>wayland: monitor unplug: call surface_leave() to handle terminal unmapping</title>
<updated>2020-04-28T17:05:10Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-04-28T17:05:10Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=2fd5a9ee8de1ab33d1504821b582b96d6dfd2d4d'/>
<id>urn:sha1:2fd5a9ee8de1ab33d1504821b582b96d6dfd2d4d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>wayland: handle outputs disappearing</title>
<updated>2020-04-27T18:46:40Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-04-27T18:46:40Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=9cfe7200006ba8f996f3a005993a78f1da0236e1'/>
<id>urn:sha1:9cfe7200006ba8f996f3a005993a78f1da0236e1</id>
<content type='text'>
That is, deal with monitors being unplugged.

At least on Sway 1.4, surfaces are not unmapped before the output is
removed. Thus, in addition to free:ing the monitor resources, we also
need to update all terminals that are mapped on this output - remove
the output from their "mapped on" list.
</content>
</entry>
<entry>
<title>wayland: group handle_global() together with handle_global_removed()</title>
<updated>2020-04-27T18:18:03Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-04-27T18:18:03Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=37871aad843b5ea094f6f225aa68534cc5e8e878'/>
<id>urn:sha1:37871aad843b5ea094f6f225aa68534cc5e8e878</id>
<content type='text'>
</content>
</entry>
<entry>
<title>render: use output's subpixel mode when rasterizing glyphs</title>
<updated>2020-04-20T16:38:55Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-04-20T16:37:59Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=6f83ef81e54b2695692c76a0a06c94c53cb7e315'/>
<id>urn:sha1:6f83ef81e54b2695692c76a0a06c94c53cb7e315</id>
<content type='text'>
</content>
</entry>
<entry>
<title>conf: add app-id config option and --app-id command line option</title>
<updated>2020-04-01T16:40:51Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-04-01T16:40:51Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=4d52a870b493c17172766db3d0a76cd8f0c3204c'/>
<id>urn:sha1:4d52a870b493c17172766db3d0a76cd8f0c3204c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>search: replace hard-coded key bindings with "user configurable" ones</title>
<updated>2020-03-18T14:30:14Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-03-18T14:30:14Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=04191564946d3ba6c1c49e5041e4bd0cda819043'/>
<id>urn:sha1:04191564946d3ba6c1c49e5041e4bd0cda819043</id>
<content type='text'>
They aren't really user configurable. At least not yet.

However, with this, we now handle raw key codes just like the normal
key bindings. Meaning, e.g. ctrl+g, ctrl+a, ctrl+e etc now works while
searching with e.g. a russian layout.
</content>
</entry>
<entry>
<title>input: bind key bindings to raw key codes too</title>
<updated>2020-03-18T13:29:34Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-03-18T13:29:34Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=6d30e7d15de49ba531cd8f8cd99c356d7f1ca0fc'/>
<id>urn:sha1:6d30e7d15de49ba531cd8f8cd99c356d7f1ca0fc</id>
<content type='text'>
Before, when looking for a matching user key binding, we only
matched *symbols*.

This means that the physical keys that generate a specific key binding
is layout dependent. What's worse, it may not even be possible to
generate the key binding at all.

Russian is one such layout, where all the "normal" (us) symbols are
replaced.

By using raw key codes, we can get around this - the key code has a
direct mapping to the physical key.

However, matching raw key codes **only** doesn't always make sense
either. For now, match **both** symbols _and_ key codes. Symbols take
precedence.

TODO: we might have to make this configurable _per binding_.

Note: 'search' mode still uses mostly hardcoded shortcuts that still
have this problem (i.e. ctrl+g doesn't work with a russian layout).
</content>
</entry>
<entry>
<title>wayland: add FDs to FDM as soon as the FDs are ready</title>
<updated>2020-03-15T12:37:56Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-03-15T12:37:56Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=6eeea06cc0525f9f0d2548ebf685b15f257142b6'/>
<id>urn:sha1:6eeea06cc0525f9f0d2548ebf685b15f257142b6</id>
<content type='text'>
</content>
</entry>
<entry>
<title>wayland: store display FD in wayland struct</title>
<updated>2020-03-15T12:36:35Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-03-15T12:36:35Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=71fde3bfac37f4a67f33ecd7888ee6c134162a95'/>
<id>urn:sha1:71fde3bfac37f4a67f33ecd7888ee6c134162a95</id>
<content type='text'>
This way we:

* Don't have to call wl_display_get_fd() all the time
* No longer call fdm_del_no_close() even though the FD hasn't been
  added to the FDM.
</content>
</entry>
<entry>
<title>Merge branch 'scale-fonts-using-logical-dpi-plus-scale-factor'</title>
<updated>2020-03-13T17:48:15Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-03-13T17:48:15Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=59a1204c5080099b1d1d42a80d8aff94936ff3fa'/>
<id>urn:sha1:59a1204c5080099b1d1d42a80d8aff94936ff3fa</id>
<content type='text'>
</content>
</entry>
<entry>
<title>term: use logical DPI+scale factor when scaling fonts</title>
<updated>2020-03-11T15:10:55Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-03-11T15:10:55Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=acecab1c8bcb414521867fce46d238ad48f4b621'/>
<id>urn:sha1:acecab1c8bcb414521867fce46d238ad48f4b621</id>
<content type='text'>
This fixes an issue where the fonts were rendered too small when the
output had fractional scaling.

For integral scaling, using the logical (scaled) DPI multiplied with
the scaling factor results in the same final DPI value as if we had
used the physical DPI.

But for fractional scaling, this works around the fact that the
compositor downscales the surface after we've rendered it.

Closes #5
</content>
</entry>
<entry>
<title>Merge branch 'master' into bindings</title>
<updated>2020-03-10T17:21:48Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-03-10T17:21:48Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=2be999a752a31a55e9c3c5a0edbe7c3bd31d8054'/>
<id>urn:sha1:2be999a752a31a55e9c3c5a0edbe7c3bd31d8054</id>
<content type='text'>
</content>
</entry>
<entry>
<title>wayland: remove empty line</title>
<updated>2020-03-10T17:06:10Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-03-10T17:02:24Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=270604b318bd573b9acf396bebf7fcf1fdf5e893'/>
<id>urn:sha1:270604b318bd573b9acf396bebf7fcf1fdf5e893</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Merge branch 'master' into bindings</title>
<updated>2020-03-09T17:49:44Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-03-09T17:49:44Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=fc7b3b2d85cc3cff87c367cb9022a3d049b9dcec'/>
<id>urn:sha1:fc7b3b2d85cc3cff87c367cb9022a3d049b9dcec</id>
<content type='text'>
</content>
</entry>
<entry>
<title>wayland: make a missing presentation time interface an error</title>
<updated>2020-03-09T17:46:09Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-03-09T17:46:09Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=3e5f011f7571fdbe45d143049d0e49620eadbef9'/>
<id>urn:sha1:3e5f011f7571fdbe45d143049d0e49620eadbef9</id>
<content type='text'>
If the user wanted to do presentation timing, and the interface isn't
there, then this is an error.
</content>
</entry>
<entry>
<title>wayland: register FDM hook early, to avoid unregister errors when failing</title>
<updated>2020-03-09T17:45:43Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-03-09T17:45:43Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=404365ec56dd3e238be46946dd15a229a64bf154'/>
<id>urn:sha1:404365ec56dd3e238be46946dd15a229a64bf154</id>
<content type='text'>
</content>
</entry>
<entry>
<title>wayland: free 'search' key bindings on destroy</title>
<updated>2020-03-08T14:30:05Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-03-08T14:30:05Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=cb21ede02072b755e419dac9d60f664823b8fb79'/>
<id>urn:sha1:cb21ede02072b755e419dac9d60f664823b8fb79</id>
<content type='text'>
</content>
</entry>
</feed>
