<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/foot.git/wayland.c, branch 1.5.4</title>
<subtitle>A fast, lightweight and minimalistic Wayland terminal emulator</subtitle>
<id>https://git.0x0f.dev/mirrors/foot.git/atom?h=1.5.4</id>
<link rel='self' href='https://git.0x0f.dev/mirrors/foot.git/atom?h=1.5.4'/>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/'/>
<updated>2020-12-01T18:35:58Z</updated>
<entry>
<title>wayland: preempt render scheduling in ‘configure’ events</title>
<updated>2020-12-01T18:35:58Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-11-10T18:20:35Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=3031ddfc16bbe39b5fe324b0495041c59245347c'/>
<id>urn:sha1:3031ddfc16bbe39b5fe324b0495041c59245347c</id>
<content type='text'>
A configure event must be “committed”. In case of resizing, that means
rendering a new frame and committing that surface.

render_resize() will resize the grid and *schedule* a render
refresh. However, if one is already pending, the refresh will take a
very (relatively) long time - until the next frame callback is
received.

This poses a problem when the window is hidden, since in this case,
the frame callback *never* comes. This in turn means we fail to commit
a new surface in response to the ‘configure’ event. And that means the
compositor needs to wait for a transaction timeout before continuing.

The end effect is very slow and jerky window resizing when a hidden
foot window is being resized.

This can happen in tiled compositors, like Sway, where a window can be
tabbed (and thus invisible), but still resized when its container is
resized.

Closes #190
</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>wayland: register xdg-output interface on pre-existing output objects</title>
<updated>2020-09-04T15:56:40Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-09-04T15:56:40Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=f2c59f8608218ea3270ee106d93af0cbcf9d831c'/>
<id>urn:sha1:f2c59f8608218ea3270ee106d93af0cbcf9d831c</id>
<content type='text'>
The XDG output manager object may arrive *after* output objects. In
this case, we need to register the pre-existing output objects with
the XDG output manager.

This fixes an issue with some monitors having a DPI value of 0 on
Gnome/mutter, which resulted in incorrect font sizes.
</content>
</entry>
<entry>
<title>render: render-timer: position sub-surface similar to the scrollback indicator</title>
<updated>2020-08-14T05:48:40Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-08-14T05:48:40Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=640445acb48bceef6c1734248902bdb685d64869'/>
<id>urn:sha1:640445acb48bceef6c1734248902bdb685d64869</id>
<content type='text'>
</content>
</entry>
<entry>
<title>wayland: global-remove: return after finding a matching seat</title>
<updated>2020-08-13T16:47:19Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-08-10T16:58:39Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=49eea3893e91b6c3df90e53c0403a976bf1cda52'/>
<id>urn:sha1:49eea3893e91b6c3df90e53c0403a976bf1cda52</id>
<content type='text'>
</content>
</entry>
<entry>
<title>wayland: global-remove: fix call to pointer_listener.leave()</title>
<updated>2020-08-13T16:47:19Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-08-10T16:57:17Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=6b18bd998a08eee404fbdb73a1a71627377b874b'/>
<id>urn:sha1:6b18bd998a08eee404fbdb73a1a71627377b874b</id>
<content type='text'>
Don't call it when we have keyboard focus, call it when we have mouse
focus.
</content>
</entry>
<entry>
<title>config: wip: add support for modifiers in mouse bindings</title>
<updated>2020-08-13T16:47:19Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-08-09T20:40:53Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=544c1b1976544085a2f27497c5c516bf1d9edfa3'/>
<id>urn:sha1:544c1b1976544085a2f27497c5c516bf1d9edfa3</id>
<content type='text'>
Mouse bindings can now include modifiers. They are specified in pretty
much the same way as in keyboard bindings:

  Control+BTN_LEFT
</content>
</entry>
<entry>
<title>config: add tweak.render-timer option</title>
<updated>2020-08-13T16:35:17Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-08-13T16:35:17Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=17070a0d54e66641839805c68cfe1670c7012525'/>
<id>urn:sha1:17070a0d54e66641839805c68cfe1670c7012525</id>
<content type='text'>
This can be set to 'none' (the default), 'osd', 'log' or 'both'.

When 'osd' is enabled, we'll render the frame rendering time to a
sub-surface after each frame.

When 'log' is enabled, the frame rendering time is logged on stderr.
</content>
</entry>
<entry>
<title>Handle allocation failures explicitly in *_init() functions</title>
<updated>2020-08-09T07:55:20Z</updated>
<author>
<name>Craig Barnes</name>
<email>craigbarnes@protonmail.com</email>
</author>
<published>2020-08-09T07:55:20Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=4e6100494c4fdea43cb95df1abb68958a89d7935'/>
<id>urn:sha1:4e6100494c4fdea43cb95df1abb68958a89d7935</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Convert most dynamic allocations to use functions from xmalloc.h</title>
<updated>2020-08-08T19:37:57Z</updated>
<author>
<name>Craig Barnes</name>
<email>craigbarnes@protonmail.com</email>
</author>
<published>2020-08-08T19:34:30Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=7a77958ba20c2b344be5e66e69e2f212a4bbf6b3'/>
<id>urn:sha1:7a77958ba20c2b344be5e66e69e2f212a4bbf6b3</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Merge branch 'master' into diagonal-dpi</title>
<updated>2020-07-28T18:01:56Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-07-28T18:01:56Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=295083059ca8f642437abf44329698d1bbbb0067'/>
<id>urn:sha1:295083059ca8f642437abf44329698d1bbbb0067</id>
<content type='text'>
</content>
</entry>
<entry>
<title>wayland: add scrollback indicator surface + sub-surface to wl_window</title>
<updated>2020-07-26T08:00:50Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-07-26T08:00:50Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=2815c1c0764cbc79625aa9c6623601d2188e0500'/>
<id>urn:sha1:2815c1c0764cbc79625aa9c6623601d2188e0500</id>
<content type='text'>
</content>
</entry>
<entry>
<title>wayland: calculate a single, scaled DPI value</title>
<updated>2020-07-26T05:41:57Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-07-26T05:41:57Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=e955a14dd0bf7ed23a9e42f28a93e3357643300c'/>
<id>urn:sha1:e955a14dd0bf7ed23a9e42f28a93e3357643300c</id>
<content type='text'>
Previously, we calculated the monitors horizontal and vertical PPI
values.

For font sizing, we used the vertical PPI value. It seems however,
that using the diagonal PPI value, i.e. diagonal_px / diagonal_inch,
gives more consistent results.

This is still a PPI value, but since it is intended to be used as a
FontConfig DPI value, name it 'dpi'.
</content>
</entry>
<entry>
<title>wayland: don't assume data-device globals are added before seats</title>
<updated>2020-07-16T15:47:47Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-07-16T15:47:47Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=067cf6ccb176abc5a73715214e5d602c99c74106'/>
<id>urn:sha1:067cf6ccb176abc5a73715214e5d602c99c74106</id>
<content type='text'>
When we're handling the initial set of globals, the data-device and
primary-selection-device objects may, or may not be registered before
the seat(s).

We need to handle both cases.

When adding a seat, instantiate the data-device and
primary-selection-device **if available**.

When adding the device objects, instantiate them on **all** currently
available seats.
</content>
</entry>
<entry>
<title>wayland: configure: do a regular resize instead of a force resize</title>
<updated>2020-07-13T13:01:27Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-07-13T13:01:27Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=d169e9634603a2ec84bb18c975cdb06f5e3551dc'/>
<id>urn:sha1:d169e9634603a2ec84bb18c975cdb06f5e3551dc</id>
<content type='text'>
The commit log says that was needed to get tiling in GNOME
working. However, I don't know *which* extension that was.

Force resizing in a configure event means we'll trash a perfectly
valid buffer on e.g. 'activated' state changes.

So, let's revert this for now, and if this breaks GNOME, let's try to
find another solution. If worse comes to worse, we can detect if we're
running under GNOME and do a force-resize then, but not on sane
compositors.
</content>
</entry>
<entry>
<title>wayland: destroy cursor theme when removing pointer capability</title>
<updated>2020-07-10T17:32:48Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-07-10T17:32:48Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=1c13061f35b2d826bee931dee2a00d911173a946'/>
<id>urn:sha1:1c13061f35b2d826bee931dee2a00d911173a946</id>
<content type='text'>
</content>
</entry>
<entry>
<title>wayland: seat: instantiate pointer surface in capabilities event</title>
<updated>2020-07-10T17:24:33Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-07-10T17:24:33Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=5677df629e4323c8e8ca24d11dd63725934a4c98'/>
<id>urn:sha1:5677df629e4323c8e8ca24d11dd63725934a4c98</id>
<content type='text'>
This way we only instantiate the surface for seats that actually have
a pointer.
</content>
</entry>
<entry>
<title>wayland: read XCURSOR_{THEME,SIZE} in reload_xcursor theme</title>
<updated>2020-07-10T10:06:55Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-07-10T10:06:55Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=bf62519d8330204b12e9e3743fb332e3abde0ed0'/>
<id>urn:sha1:bf62519d8330204b12e9e3743fb332e3abde0ed0</id>
<content type='text'>
</content>
</entry>
<entry>
<title>wayland: globals: destroy: seat: use keyboard/pointer listener interfaces</title>
<updated>2020-07-09T06:52:39Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-07-09T06:52:39Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=a6da07b3dd8771ecf9bb2cfb3149506525e1ef53'/>
<id>urn:sha1:a6da07b3dd8771ecf9bb2cfb3149506525e1ef53</id>
<content type='text'>
</content>
</entry>
<entry>
<title>wayland: globals: destroy: handle seats being destroyed</title>
<updated>2020-07-09T06:47:56Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-07-09T06:47:56Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=b6342bb36d83054968a1d413ccf983f6ffc0366c'/>
<id>urn:sha1:b6342bb36d83054968a1d413ccf983f6ffc0366c</id>
<content type='text'>
</content>
</entry>
</feed>
