<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/foot.git/wayland.c, branch 1.0.0</title>
<subtitle>A fast, lightweight and minimalistic Wayland terminal emulator</subtitle>
<id>https://git.0x0f.dev/mirrors/foot.git/atom?h=1.0.0</id>
<link rel='self' href='https://git.0x0f.dev/mirrors/foot.git/atom?h=1.0.0'/>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/'/>
<updated>2019-12-05T18:35:34Z</updated>
<entry>
<title>wayland: include more output (monitor) details in the log output</title>
<updated>2019-12-05T18:35:34Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-12-05T18:35:34Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=db1d913ba8ce586b6597b093f192ae1af8b844dd'/>
<id>urn:sha1:db1d913ba8ce586b6597b093f192ae1af8b844dd</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add missing includes</title>
<updated>2019-12-01T18:22:45Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-12-01T18:22:45Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=b5780e735e5b73ba5aa50d53af698e012aaf3f74'/>
<id>urn:sha1:b5780e735e5b73ba5aa50d53af698e012aaf3f74</id>
<content type='text'>
</content>
</entry>
<entry>
<title>wayland: track current xcursor, and don't update if same</title>
<updated>2019-11-30T11:09:57Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-11-30T11:09:57Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=a87b39f6eb18b5b3674afcb3f24816d933eab319'/>
<id>urn:sha1:a87b39f6eb18b5b3674afcb3f24816d933eab319</id>
<content type='text'>
We may have many windows open, which tries to update/change the
xcursor at various points.

Track which cursor is currently loaded, regardless of which window it
was set by. If someone tries to load that very same xcursor again,
simply skip it.

One example is when we've moused over a window that does *not* have
keyboard focus, and then the user clicks, or by some other mean gives
that window keyboard focus. In many cases it will then try to set the
same cursor again (most of the times, the cursor is the same
regardless of keyboard focus, but not always).
</content>
</entry>
<entry>
<title>wayland: terminal_from_surface: recognize scrollback search surfaces</title>
<updated>2019-11-29T21:10:28Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-11-29T21:10:28Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=c8724fe65694c991c4f6bd1916ca12f6218770d3'/>
<id>urn:sha1:c8724fe65694c991c4f6bd1916ca12f6218770d3</id>
<content type='text'>
This fixes an assertion when hovering over the input field for
scrollback searches.
</content>
</entry>
<entry>
<title>wayland: always flush after dispatching messages</title>
<updated>2019-11-29T21:09:56Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-11-29T21:09:56Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=304ee33fd65dca61102af0a515f90292cfda3826'/>
<id>urn:sha1:304ee33fd65dca61102af0a515f90292cfda3826</id>
<content type='text'>
This means we don't have to e.g. roundtrip when setting the cursor.
</content>
</entry>
<entry>
<title>terminal: use the 'text' xcursor pointer whenever selection is possible</title>
<updated>2019-11-28T18:35:47Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-11-28T18:35:47Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=0dd37f0a364fc36284dad17e8fb1345714261a4a'/>
<id>urn:sha1:0dd37f0a364fc36284dad17e8fb1345714261a4a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>wayland: calculate output PPI (pixels-per-inch)</title>
<updated>2019-11-26T18:02:35Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-11-26T17:55:03Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=204bfa02f453dc931b0491f0f6f8313ad9183944'/>
<id>urn:sha1:204bfa02f453dc931b0491f0f6f8313ad9183944</id>
<content type='text'>
</content>
</entry>
<entry>
<title>wayland: change disconnected log type from err -&gt; warn</title>
<updated>2019-11-23T12:56:11Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-11-23T12:56:11Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=721ac4ab31a5a5c443f03f2dfef7c78fc075f0b9'/>
<id>urn:sha1:721ac4ab31a5a5c443f03f2dfef7c78fc075f0b9</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tllist: is now an external "library", so use &lt;&gt; includes</title>
<updated>2019-11-17T18:19:55Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-11-17T18:19:55Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=29cccadd1d9c372b3861bb0c285628bb374da2ba'/>
<id>urn:sha1:29cccadd1d9c372b3861bb0c285628bb374da2ba</id>
<content type='text'>
</content>
</entry>
<entry>
<title>wayland: verify xdg-output-manager interface version</title>
<updated>2019-11-03T15:14:35Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-11-03T15:14:35Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=988134717feed7688ff815763e619de5641aecb0'/>
<id>urn:sha1:988134717feed7688ff815763e619de5641aecb0</id>
<content type='text'>
</content>
</entry>
<entry>
<title>wayland: verify server implements the required interface versions</title>
<updated>2019-11-03T14:39:26Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-11-03T14:39:26Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=4e93b3a2d8fff2809f35162e51b8d55b96ca6eec'/>
<id>urn:sha1:4e93b3a2d8fff2809f35162e51b8d55b96ca6eec</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Remove unneeded include</title>
<updated>2019-11-03T12:07:19Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-11-03T12:07:19Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=a8cb6c531ec33159e49aa5ee4d4eddf15e0227ec'/>
<id>urn:sha1:a8cb6c531ec33159e49aa5ee4d4eddf15e0227ec</id>
<content type='text'>
</content>
</entry>
<entry>
<title>misc: fdm already logs failures</title>
<updated>2019-11-02T23:52:24Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-11-02T23:25:17Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=79c3121aa34dbee4c3557fa058a864f229f8e313'/>
<id>urn:sha1:79c3121aa34dbee4c3557fa058a864f229f8e313</id>
<content type='text'>
</content>
</entry>
<entry>
<title>timerfd: read() returns -1 with errno == EAGAIN, not 0</title>
<updated>2019-11-02T00:44:01Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-11-02T00:44:01Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=f28fb6c039e62fe81cb610365f1801645860ceda'/>
<id>urn:sha1:f28fb6c039e62fe81cb610365f1801645860ceda</id>
<content type='text'>
When there hasn't been a timeout (or in our case, there was a timeout,
but we reset the timer before we got to the read()), read() returns,
not 0, but -1 with errno == EAGAIN.
</content>
</entry>
<entry>
<title>timerfd: use non-blocking mode, fixes dead lock</title>
<updated>2019-11-02T00:14:40Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-11-02T00:14:40Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=b27cd9cedfc15c4d8125cea659a1b5cdb5b071cf'/>
<id>urn:sha1:b27cd9cedfc15c4d8125cea659a1b5cdb5b071cf</id>
<content type='text'>
Since we cancel the timers every now and then, there's a (small)
chance that one handler cancels a timer that has triggered in the same
epoll() iteration.

When this happens, read() blocks.

Fix by making the timer FDs non-blocking, and simply returning when we
read 0 bytes.
</content>
</entry>
<entry>
<title>wayland: wayl_win_destroy(): looks like we need another roundtrip</title>
<updated>2019-11-01T19:45:57Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-11-01T19:45:57Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=8b4ef78f7a9692c14e20a32dcf0c250f7812828a'/>
<id>urn:sha1:8b4ef78f7a9692c14e20a32dcf0c250f7812828a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>wayland: wayl_destroy(): destroy any remaining terminals</title>
<updated>2019-11-01T19:25:08Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-11-01T19:25:08Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=bc815a33dbe998a108e395634c308f47a6780276'/>
<id>urn:sha1:bc815a33dbe998a108e395634c308f47a6780276</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Don't use non-blocking FDs</title>
<updated>2019-11-01T19:24:13Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-11-01T19:24:13Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=2e78dcc5e5cd2d5a2ae6a1f136467fc99a6dfd57'/>
<id>urn:sha1:2e78dcc5e5cd2d5a2ae6a1f136467fc99a6dfd57</id>
<content type='text'>
We use epoll() to determine when we can read/write FDs so there's
absolutely no need for non-blocking.
</content>
</entry>
<entry>
<title>wayland: wayl_win_destroy(): unmap windows before destroying</title>
<updated>2019-11-01T19:19:53Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-11-01T19:19:53Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=95b7c405d464b0eb04141cbbfe077371f5a9d47c'/>
<id>urn:sha1:95b7c405d464b0eb04141cbbfe077371f5a9d47c</id>
<content type='text'>
This will trigger e.d. keyboard_leave() and wl_pointer_leave() events,
which ensures there aren't any references to the destroyed window from
the global wayland struct.

Call wl_display_roundtrip() to trigger those events *before* we
destroy the window.
</content>
</entry>
<entry>
<title>wayland: wayl_init(): call wl_display_roundtrip() when done</title>
<updated>2019-11-01T19:04:40Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-11-01T19:02:02Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=66b20972753ff705a0b081a02a969f7eb42b1c97'/>
<id>urn:sha1:66b20972753ff705a0b081a02a969f7eb42b1c97</id>
<content type='text'>
</content>
</entry>
</feed>
