<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/foot.git/wayland.c, branch 1.4.4</title>
<subtitle>A fast, lightweight and minimalistic Wayland terminal emulator</subtitle>
<id>https://git.0x0f.dev/mirrors/foot.git/atom?h=1.4.4</id>
<link rel='self' href='https://git.0x0f.dev/mirrors/foot.git/atom?h=1.4.4'/>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/'/>
<updated>2020-07-29T04:58:16Z</updated>
<entry>
<title>wayland: calculate a single, scaled DPI value</title>
<updated>2020-07-29T04:58:16Z</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=9601ed7cfb120e993cb3fd5db7d47bb3a7c49bec'/>
<id>urn:sha1:9601ed7cfb120e993cb3fd5db7d47bb3a7c49bec</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>
<entry>
<title>wayland: log: be clear that these are the XCRUSOR_* environment variables</title>
<updated>2020-07-08T18:04:02Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-07-08T18:04:02Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=98f3ccfe79b37122f879174e315df407e7f4e09d'/>
<id>urn:sha1:98f3ccfe79b37122f879174e315df407e7f4e09d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>xcursor: trigger theme reload in pointer-enter event</title>
<updated>2020-07-08T17:52:17Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-07-08T17:52:17Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=d377221e247f67f7b5e6363f81ae2268e16aa32d'/>
<id>urn:sha1:d377221e247f67f7b5e6363f81ae2268e16aa32d</id>
<content type='text'>
Previously, we triggered a theme reload on output changes. This is
completely wrong. We may get a new output with a scale different from
the output the pointer is actually on.

Now, we store the current scale along with the theme. We then trigger
a call to reload the xcursor theme *every* time the pointer enters a
surface. When it does, we use the current scale factor of the terminal
that owns that surface.

If the terminal covers multiple outputs, with different scale factors,
we'll use the largest scale factor. This may not be 100% correct. But
to fix that, we'd need to track which regions of a surface are mapped
on which outputs. Too complicated I say.
</content>
</entry>
<entry>
<title>wayland: seat: log keyboard/pointer capability</title>
<updated>2020-07-08T17:30:34Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-07-08T17:30:34Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=5539af25970e4590faafaba467a3df193534c299'/>
<id>urn:sha1:5539af25970e4590faafaba467a3df193534c299</id>
<content type='text'>
</content>
</entry>
<entry>
<title>multi-seat: re-enable selection support (excluding OSC 52)</title>
<updated>2020-07-08T16:41:09Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-07-08T16:41:09Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=4c7d29f7eb95b10a0fadc406924db537a18b12ca'/>
<id>urn:sha1:4c7d29f7eb95b10a0fadc406924db537a18b12ca</id>
<content type='text'>
</content>
</entry>
<entry>
<title>multi-seat: re-enable scrollback search support</title>
<updated>2020-07-08T16:20:34Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-07-08T16:20:34Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=04e566492cd831f038afb5ef8908453efca84cde'/>
<id>urn:sha1:04e566492cd831f038afb5ef8908453efca84cde</id>
<content type='text'>
</content>
</entry>
<entry>
<title>multi-seat: enable xcursor theme support again</title>
<updated>2020-07-08T16:08:39Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-07-08T16:08:39Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=be2490022d445bef2c5c00336aecf2bd9dd25ee7'/>
<id>urn:sha1:be2490022d445bef2c5c00336aecf2bd9dd25ee7</id>
<content type='text'>
</content>
</entry>
<entry>
<title>wip: multi-seat support</title>
<updated>2020-07-08T14:45:26Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-07-08T14:45:26Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=c47082506714f458e999f6ff1bf3099dfc4c0c0c'/>
<id>urn:sha1:c47082506714f458e999f6ff1bf3099dfc4c0c0c</id>
<content type='text'>
Compiles and runs, but mouse, clipboard and other things have been
disabled.
</content>
</entry>
<entry>
<title>wayland: use xdg_output's description if there's no 'model'</title>
<updated>2020-06-25T15:30:51Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-06-25T15:30:51Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=32e70263f905ee58ba4026d57b1a5fec35c26352'/>
<id>urn:sha1:32e70263f905ee58ba4026d57b1a5fec35c26352</id>
<content type='text'>
</content>
</entry>
<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>
</feed>
