<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/foot.git/wayland.h, branch 1.6.0</title>
<subtitle>A fast, lightweight and minimalistic Wayland terminal emulator</subtitle>
<id>https://git.0x0f.dev/mirrors/foot.git/atom?h=1.6.0</id>
<link rel='self' href='https://git.0x0f.dev/mirrors/foot.git/atom?h=1.6.0'/>
<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>input: report mouse drag events also when the pointer is outside the grid</title>
<updated>2020-12-11T20:01:00Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-12-11T19:48:43Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=a1a0b489eec73b8e4823cf210fbebfe1fd1d1efa'/>
<id>urn:sha1:a1a0b489eec73b8e4823cf210fbebfe1fd1d1efa</id>
<content type='text'>
As long as the mouse button was *pressed* while the pointer was inside
the grid, we want to keep reporting motion events until the button is
released.

Even when the pointer moves outside the grid (but in this case, the
reported coordinates are bounded by the grid size).

This patch also tries to improve multi-button handling (i.e. multiple
buttons pressed at the same time), and the events we report to the
client for these, in the following ways:

* Motion events now report the *initial* button. That is, if you start
  a drag operation with the LEFT button, then press RIGHT (before
  releasing LEFT), keep reporting LEFT in the motion events.
* Mouse release events are reported for *any* button, as long as the
  pointer is *inside* the grid, *or*, the button released was the
  button used to start a drag operation.

The last point is important; if we have reported a button press
followed by motion events (i.e. a drag operation), we need to report
the button release, *even* if the pointer is outside the grid.

Note that the client may receive unbalanced button press/release
events in the following ways if the user pressed one, and then a
second button *inside* the grid, then releases the *first*
button (possibly outside the grid), and finally releases the *second*
button *outside* the grid.

In this case, both buttons will report press events. The first button
will report a release event since it is the initial button in the drag
operation.

However, we don’t track the fact that the second button is being
pressed, and thus if it is released outside the grid, it wont generate
a release event.
</content>
</entry>
<entry>
<title>Merge branch 'remove-deprecated-things'</title>
<updated>2020-12-09T19:53:05Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-12-09T19:53:05Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=3e25faeae74244f04cd4a5e7ff3bae4bd82ff385'/>
<id>urn:sha1:3e25faeae74244f04cd4a5e7ff3bae4bd82ff385</id>
<content type='text'>
</content>
</entry>
<entry>
<title>config: remove support for scrollback-up and scrollback-down</title>
<updated>2020-12-08T18:58:02Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-12-08T18:58:02Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=5020366bf59f47d36d4a2d33ac9501f401dfaf5c'/>
<id>urn:sha1:5020366bf59f47d36d4a2d33ac9501f401dfaf5c</id>
<content type='text'>
</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>input: relax requirements for overriding keypad application mode</title>
<updated>2020-12-01T17:27:56Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-12-01T17:27:56Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=c44c7cc5beeeda070126feed003f3e2fd18aa5a0'/>
<id>urn:sha1:c44c7cc5beeeda070126feed003f3e2fd18aa5a0</id>
<content type='text'>
Don’t require NumLock to be locked. Foot has no idea _which_ modifier
the user has mapped NumLock to, meaning we really cannot require it to
be locked.
</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>input: track num lock state</title>
<updated>2020-11-11T17:28:13Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-11-11T17:28:13Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=bdaf20ba71fe9ae5222f259e286f627c36603732'/>
<id>urn:sha1:bdaf20ba71fe9ae5222f259e286f627c36603732</id>
<content type='text'>
</content>
</entry>
<entry>
<title>config: add support for pipe-* actions in mouse bindings</title>
<updated>2020-11-06T18:30:05Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-11-06T18:29:23Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=9ce79e2ef0b0b19b06990302807d6c3b3a755e1e'/>
<id>urn:sha1:9ce79e2ef0b0b19b06990302807d6c3b3a755e1e</id>
<content type='text'>
Closes #183
</content>
</entry>
<entry>
<title>search: add {clipboard,primary}-paste key bindings</title>
<updated>2020-11-01T11:39:57Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-11-01T11:39:57Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=f3e6941c9a9448883ec2df75f025840fce57ee17'/>
<id>urn:sha1:f3e6941c9a9448883ec2df75f025840fce57ee17</id>
<content type='text'>
These bindings copy from the clipboard or primary selection into the
search buffer.

Default bindings:

* clipboard-paste: ctrl+v, ctrl+y
* primary-paste: shift+insert
</content>
</entry>
<entry>
<title>selection: add support for different mime-types</title>
<updated>2020-10-28T18:16:04Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-10-28T18:16:04Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=be22fefdc73c8b2ca8375a1b3f19c8d05de18e24'/>
<id>urn:sha1:be22fefdc73c8b2ca8375a1b3f19c8d05de18e24</id>
<content type='text'>
Add support for `text/plain`, `text/plain;charset=utf-8` and
`text/uri-list` to regular copy operations (both from clipboard and
primary selection) and drag-and-drop operations.
</content>
</entry>
<entry>
<title>selection: implement support for drag-and-drop</title>
<updated>2020-10-26T20:02:53Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-10-26T20:02:53Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=8e23b5b70d8622784e4856e5f14493a8893eab8b'/>
<id>urn:sha1:8e23b5b70d8622784e4856e5f14493a8893eab8b</id>
<content type='text'>
We accept COPY and MOVE actions, for text/plain;charset=utf-8
mime-types.

To implement DnD, we need to track the current DnD data offer *and*
the terminal instance it is (currently) targeting.

To do this, a seat has a new member, ‘dnd_term’. On a DnD enter event,
we lookup the corresponding terminal instance and point ‘dnd_term’ to
it.

On a DnD leave event, ‘dnd_term’ is reset.

The DnD data offer is tracked in the terminal’s wayland window
instance. It is reset, along with the seat’s ‘dnd_term’ on a DnD leave
event.

On a drop event, we immediately clear the seat’s ‘dnd_term’, to ensure
we don’t reset it, or destroy the offer before the drop has been
completed.

The drop’s ‘done()’ callback takes care of destroying and resetting
the DnD offer in the terminal’s wayland window instance.

Closes #175
</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>input: don’t use stale keycodes for arrow-up/down</title>
<updated>2020-09-15T16:44:54Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-09-15T16:44:54Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=cb41db85965698dcf34217f8d26d9163a72a2e70'/>
<id>urn:sha1:cb41db85965698dcf34217f8d26d9163a72a2e70</id>
<content type='text'>
The keycodes will change if the seat’s keymap changes. Make sure we
only do alternate scrolling if the seat has a keyboard, and use
the *current* layout’s keycodes for arrow up/down (instead of
the *first* layout’s).
</content>
</entry>
<entry>
<title>key-binding: deprecate scrollback-up/down, add scrollback-up/down-line</title>
<updated>2020-09-10T16:17:47Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-09-10T16:17:47Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=4d13429235e00290230dd7d070156c610a9502cc'/>
<id>urn:sha1:4d13429235e00290230dd7d070156c610a9502cc</id>
<content type='text'>
This deprecates/renames scrollback-up/down to scrollback-up/down-page.

It also renames scrollback-up/down-half to
scrollback-up/down-half-page, and adds the new bindings
scrollback-up/down-line.
</content>
</entry>
<entry>
<title>config: add scrollback-{up,down}-half key bindings</title>
<updated>2020-09-09T17:40:48Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-09-09T17:40:48Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=2e3bd5e23c68280ec95498a4afe176b5f94964e0'/>
<id>urn:sha1:2e3bd5e23c68280ec95498a4afe176b5f94964e0</id>
<content type='text'>
These new bindings scroll up/down half a page in the
scrollback (instead of the full page scrolled by
‘scrollback-{up,down}’).

Closes #128.
</content>
</entry>
<entry>
<title>wayland: set BIND_ACTION_KEY_COUNT correctly</title>
<updated>2020-09-08T17:08:26Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-09-08T17:08:26Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=eb45cb7b6072ffdc6391a8c8fc09cdeffdc9f429'/>
<id>urn:sha1:eb45cb7b6072ffdc6391a8c8fc09cdeffdc9f429</id>
<content type='text'>
This fixes an issue where ‘pipe-selected’ were not recognized as a
valid key action.

Closes #125
</content>
</entry>
</feed>
