<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/foot.git/input.c, branch 1.5.3</title>
<subtitle>A fast, lightweight and minimalistic Wayland terminal emulator</subtitle>
<id>https://git.0x0f.dev/mirrors/foot.git/atom?h=1.5.3</id>
<link rel='self' href='https://git.0x0f.dev/mirrors/foot.git/atom?h=1.5.3'/>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/'/>
<updated>2020-11-06T19:09:16Z</updated>
<entry>
<title>input: don’t use seat-&gt;kbd_focus as terminal when processing a key press</title>
<updated>2020-11-06T19:09:16Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-11-03T18:44:51Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=c512dc4490b552c535636563db28b74b258ec0fc'/>
<id>urn:sha1:c512dc4490b552c535636563db28b74b258ec0fc</id>
<content type='text'>
When converting mouse scroll events to keyboard input (in alternate
scroll mode), we need to use seat-&gt;mouse_focus, not seat-&gt;kbd_focus.

To enable this, break out key press/release handling code to a
separate function that takes an explicit term argument. Call this
function from keyboard_key(), input_repeat() and in alternate scroll
mode.

Closes #179
</content>
</entry>
<entry>
<title>input: handle XKB errors</title>
<updated>2020-11-06T19:08:15Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-10-20T19:01:33Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=30f23a3b743525bf7daf4334a549030956146b15'/>
<id>urn:sha1:30f23a3b743525bf7daf4334a549030956146b15</id>
<content type='text'>
* Don’t de-reference the xkb context/keymap/state if we failed to
  instantiate them.
* Don’t try to send a translated utf8 key sequence if the translation
  failed.
* Handle xkb_compose_state_get_utf8() and xkb_state_key_get_utf8()
  returning more than 64 bytes.

This _may_ fix #171.
</content>
</entry>
<entry>
<title>input: don’t allow diagonal resize when tiled</title>
<updated>2020-11-06T19:08:07Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-10-20T19:00:19Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=90544ef391f0c546e831255036a939ac5314f6a9'/>
<id>urn:sha1:90544ef391f0c546e831255036a939ac5314f6a9</id>
<content type='text'>
</content>
</entry>
<entry>
<title>input: don’t crash if xkbcommon cannot find a compose file</title>
<updated>2020-11-06T19:07:31Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-10-19T16:30:19Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=9e7783596aad33fcb5564186feb93d94e465627b'/>
<id>urn:sha1:9e7783596aad33fcb5564186feb93d94e465627b</id>
<content type='text'>
Handle xkb_compose_table_new_from_locale() returning NULL. When this
happens, log a warning that “dead keys” will be disabled, and make
sure to never de-reference the compose table pointer.

Closes #170
</content>
</entry>
<entry>
<title>input: regression: don’t pass on mouse click to application if we consumed it</title>
<updated>2020-10-13T06:02:09Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-10-13T06:02:09Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=fdb7e403555df5fdcb7daf23f665bdec13b02500'/>
<id>urn:sha1:fdb7e403555df5fdcb7daf23f665bdec13b02500</id>
<content type='text'>
When we ‘consume’ a mouse button event (i.e. when we have a shortcut
mapped to it), the event should *not* be passed on to the client
application.

In 5f64c5c33590a41afd3f621870c6abd89b859073, button handling was
refactored and unfortunately introduced a regression where we once
again started passing consumed button presses to the client
application.

Fixes #168
</content>
</entry>
<entry>
<title>input: trackpad scroll: correctly convert pixel movements to line movements</title>
<updated>2020-10-11T17:23:25Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-09-27T09:11:45Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=8e04b086158730b615803c45368f1fe7a6bce95e'/>
<id>urn:sha1:8e04b086158730b615803c45368f1fe7a6bce95e</id>
<content type='text'>
Trackpad scroll movements are in pixels. Foot previously “translated”
these directly to line movements (i.e. a one pixel scroll event was
translated into a one line scroll).

Now we use the line height of the terminal and correctly convert
pixels to lines.

This makes the trackpad scroll speed in foot consistent with the
scroll speed in e.g. Alacritty and Kitty.
</content>
</entry>
<entry>
<title>input: mouse: match binding if binding’s click count is *less*</title>
<updated>2020-10-11T17:22:47Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-09-27T12:31:39Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=59ca98f989129efc1f4a77929921571a8e06949f'/>
<id>urn:sha1:59ca98f989129efc1f4a77929921571a8e06949f</id>
<content type='text'>
Allow a mouse binding to match even if its click count is less than
the actual click count.

If there are multiple bindings that match, use the one with the
highest click count (that less than, or equal to the actual click
count).

Closes #146
</content>
</entry>
<entry>
<title>input: mouse_scroll(): refactor</title>
<updated>2020-09-15T16:57:00Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-09-15T16:56:22Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=04c1bab7b0d24028403667d9081ca0081c947ebd'/>
<id>urn:sha1:04c1bab7b0d24028403667d9081ca0081c947ebd</id>
<content type='text'>
</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>input: don’t do alternate mode scrolling if application is grabbing mouse</title>
<updated>2020-09-15T16:40:51Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-09-15T16:40:51Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=028bbd03a3284d60db802631a71ebb1626befa68'/>
<id>urn:sha1:028bbd03a3284d60db802631a71ebb1626befa68</id>
<content type='text'>
</content>
</entry>
<entry>
<title>input: don’t do grid scrollback if mouse events are being captured</title>
<updated>2020-09-15T16:33:58Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-09-15T16:33:58Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=6ad90e63236408d4b661050a96d2486854c69cb1'/>
<id>urn:sha1:6ad90e63236408d4b661050a96d2486854c69cb1</id>
<content type='text'>
</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>input: fix assertion when pressing first one mouse button, then another</title>
<updated>2020-09-07T17:35:25Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-09-07T17:35:25Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=5f64c5c33590a41afd3f621870c6abd89b859073'/>
<id>urn:sha1:5f64c5c33590a41afd3f621870c6abd89b859073</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Cast printf formatter %p arguments to void*</title>
<updated>2020-08-23T08:07:08Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-08-23T05:50:27Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=e32c0d9bf698782353bbe9e4348617523af473bd'/>
<id>urn:sha1:e32c0d9bf698782353bbe9e4348617523af473bd</id>
<content type='text'>
</content>
</entry>
<entry>
<title>don't use empty struct initializers</title>
<updated>2020-08-23T08:07:00Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-08-23T05:42:20Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=dabdffafa59f43314333be42aa519d7fff1b4498'/>
<id>urn:sha1:dabdffafa59f43314333be42aa519d7fff1b4498</id>
<content type='text'>
</content>
</entry>
<entry>
<title>input: inhibit mouse events to client when a binding has consumed it</title>
<updated>2020-08-22T11:35:36Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-08-22T11:35:36Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=3ddc17937f19b63656ad8d79026e9afa90102ef7'/>
<id>urn:sha1:3ddc17937f19b63656ad8d79026e9afa90102ef7</id>
<content type='text'>
This introduces a new state to a seat's mouse struct, 'consumed'. It
is set on a mouse *press* event that is claimed by a mouse binding.

It is cleared after a mouse *release* event.

While set, *no* mouse motion or button events are sent to the client
application.
</content>
</entry>
<entry>
<title>Fix some spelling mistakes</title>
<updated>2020-08-15T18:39:00Z</updated>
<author>
<name>Craig Barnes</name>
<email>craigbarnes@protonmail.com</email>
</author>
<published>2020-08-15T18:39:00Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=104fe2fa55b113212899bea893a13fe7b3467156'/>
<id>urn:sha1:104fe2fa55b113212899bea893a13fe7b3467156</id>
<content type='text'>
</content>
</entry>
<entry>
<title>input: mouse motion: don't update selection while scrollback searching</title>
<updated>2020-08-14T05:38:56Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-08-11T14:36:42Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=d29c4aed8a424b67eb0be4dbb7f8d964357cdfaa'/>
<id>urn:sha1:d29c4aed8a424b67eb0be4dbb7f8d964357cdfaa</id>
<content type='text'>
When we are doing a scrollback search, the selection *is* ongoing. We
still don't want to update the selection when the mouse moves.
</content>
</entry>
<entry>
<title>input: bindings: calculate 'cursor_is_on_grid' once only</title>
<updated>2020-08-14T05:38:56Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-08-11T08:53:21Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=bb9228dd21785c8621d9b413c3e630b5f47bbce4'/>
<id>urn:sha1:bb9228dd21785c8621d9b413c3e630b5f47bbce4</id>
<content type='text'>
</content>
</entry>
</feed>
