<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/foot.git/wayland.c, branch 1.6.2</title>
<subtitle>A fast, lightweight and minimalistic Wayland terminal emulator</subtitle>
<id>https://git.0x0f.dev/mirrors/foot.git/atom?h=1.6.2</id>
<link rel='self' href='https://git.0x0f.dev/mirrors/foot.git/atom?h=1.6.2'/>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/'/>
<updated>2020-12-12T18:05:24Z</updated>
<entry>
<title>input: rework mouse button/motion handling</title>
<updated>2020-12-12T18:05:24Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-12-12T18:05:24Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=ff96ce1e91e5a8de451541cc7584fb6f64a6564b'/>
<id>urn:sha1:ff96ce1e91e5a8de451541cc7584fb6f64a6564b</id>
<content type='text'>
Store a list of currently pressed buttons, and which surface they
belong to (i.e. which surface that received the press).

Then, in motion events (with a button pressed, aka drag operations),
send the event to the “original” surface (that received the press).

Also send release events to the originating surface.

This means a surface receiving a press will always receive a
corresponding release. And no one will receive a release event without
a corresponding press event.

Motion events with a button pressed will *always* use the *first*
button that was pressed. I.e. if you press a button, start dragging,
and then press another button, we keep generating motion events for
the *first* button.
</content>
</entry>
<entry>
<title>ime: make IME compile-time optional</title>
<updated>2020-12-07T19:44:10Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-12-03T17:36:56Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=05083110c3fad046ccf0838a364150b8d2bab888'/>
<id>urn:sha1:05083110c3fad046ccf0838a364150b8d2bab888</id>
<content type='text'>
</content>
</entry>
<entry>
<title>ime: render pre-edit text</title>
<updated>2020-12-07T19:44:10Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-12-02T17:52:50Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=8c3d48c5cdb2ae4e8bdbdc48f155f53d1a92973b'/>
<id>urn:sha1:8c3d48c5cdb2ae4e8bdbdc48f155f53d1a92973b</id>
<content type='text'>
This is done by allocating cells for the pre-edit text when receiving
the text-input::done() call, and populating them by converting the
utf-8 formatted pre-edit text to wchars.

We also convert the pre-edit cursor position to cell positions (it can
cover multiple cells).

When rendering, we simply render the pre-edit cells on-top off the
regular grid. While doing so, we also mark the underlying, “real”,
cells as dirty, to ensure they are re-rendered when the pre-edit text
is modified or removed.
</content>
</entry>
<entry>
<title>ime: wip: commit all changes in ‘done()’</title>
<updated>2020-12-07T19:44:10Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-12-01T18:31:49Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=5745c610ac5e9b96f9bac8347c6a5645d89a66c6'/>
<id>urn:sha1:5745c610ac5e9b96f9bac8347c6a5645d89a66c6</id>
<content type='text'>
</content>
</entry>
<entry>
<title>ime: wip: add text-input object to seat</title>
<updated>2020-12-07T19:44:09Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-10-10T20:14:35Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=148bb1ff136ee225aaa93ff9b40700feb81503c5'/>
<id>urn:sha1:148bb1ff136ee225aaa93ff9b40700feb81503c5</id>
<content type='text'>
</content>
</entry>
<entry>
<title>wayland: Use wl_output_release with wl_output v3</title>
<updated>2020-11-24T23:19:23Z</updated>
<author>
<name>Kenny Levinsen</name>
<email>kl@kl.wtf</email>
</author>
<published>2020-11-23T23:00:43Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=ab6327da2699e81e877c6f9f63786ff6d3a271cd'/>
<id>urn:sha1:ab6327da2699e81e877c6f9f63786ff6d3a271cd</id>
<content type='text'>
wl_output_release, the use of which was recently introduced, is not
available until wl_output interface version 3.

However, only wl_output version 2 was bound. This lead to protocol
errors when a display was disconnected, causing foot to terminate.

Instead, only use wl_output_release if wl_output version 3 is provided
and bound. Otherwise, just use wl_output_destroy.

Closes: https://codeberg.org/dnkl/foot/issues/219
</content>
</entry>
<entry>
<title>wayland: preempt render scheduling in ‘configure’ events</title>
<updated>2020-11-10T18:20:35Z</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=02ee570c272e93b29621a4dfc2f546c1b8e1bb2b'/>
<id>urn:sha1:02ee570c272e93b29621a4dfc2f546c1b8e1bb2b</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: use wl_*_release() instead of wl_*_destroy()</title>
<updated>2020-11-09T18:59:45Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-11-09T18:59:05Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=85220a554393280191c9c1507205ec5bffbc9031'/>
<id>urn:sha1:85220a554393280191c9c1507205ec5bffbc9031</id>
<content type='text'>
This lets the compositor free up internal state.
</content>
</entry>
<entry>
<title>wayland: output removed: only call surface_leave() if term is actually mapped on that output</title>
<updated>2020-11-06T18:25:54Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-11-06T18:25:54Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=b541ce9d5cd64344a7bfeea981fe52128e4bb88a'/>
<id>urn:sha1:b541ce9d5cd64344a7bfeea981fe52128e4bb88a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>wayland: bind to data-device-manager version 3, for drag-and-drop support</title>
<updated>2020-10-26T20:02:24Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-10-26T20:02:24Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=af3b604d8e031f4d988a2fb6c9693e5f10533286'/>
<id>urn:sha1:af3b604d8e031f4d988a2fb6c9693e5f10533286</id>
<content type='text'>
</content>
</entry>
<entry>
<title>wayland: properly restore window size when being un-tiled</title>
<updated>2020-10-20T18:58:03Z</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=f928c1fa682a3dd3728b290d8fa9de79a63538ed'/>
<id>urn:sha1:f928c1fa682a3dd3728b290d8fa9de79a63538ed</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: don’t instantiate a decoration object when user disabled decorations</title>
<updated>2020-10-11T16:47:26Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-10-11T16:47:26Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=6afe64b7f4a00c7f6b1787c84703b64f8c3ce7e5'/>
<id>urn:sha1:6afe64b7f4a00c7f6b1787c84703b64f8c3ce7e5</id>
<content type='text'>
An application opts *in* for being compositor-decorated by
instantiating a decoration object.

This means, even if we request e.g. CSDs, the compositor can choose to
use SSDs.

By *not* instantiating a decorator object, the compositor *must* not
decorate the window for us.

So, when the user has set csd.preferred=none, we absolute do not want
the compositor to decorate us. Thus, we refrain from instantiating a
decoration object.
</content>
</entry>
<entry>
<title>conf: csd.preferred can now be set to ‘none’</title>
<updated>2020-10-10T11:07:29Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-10-10T09:04:17Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=6ff97128fc55573274fb21b6e56821db02cf162b'/>
<id>urn:sha1:6ff97128fc55573274fb21b6e56821db02cf162b</id>
<content type='text'>
When csd.preferred == none, we will request CSDs from the compositor,
but internally render as if we are using SSDs. That is, we don’t
render any window decorations at all.

Note that some compositors may ignore our request to use CSDs, and
still render SSDs for us.

Closes #163
</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>
</feed>
