<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/foot.git/input.c, branch releases/1.3</title>
<subtitle>A fast, lightweight and minimalistic Wayland terminal emulator</subtitle>
<id>https://git.0x0f.dev/mirrors/foot.git/atom?h=releases%2F1.3</id>
<link rel='self' href='https://git.0x0f.dev/mirrors/foot.git/atom?h=releases%2F1.3'/>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/'/>
<updated>2020-05-01T09:46:24Z</updated>
<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>misc: replace all explicit zero-initializers with empty initializers</title>
<updated>2020-04-13T10:03:11Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-04-13T10:03:11Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=c96a0b3b3ce22f0db45e61160d414258917e4bcd'/>
<id>urn:sha1:c96a0b3b3ce22f0db45e61160d414258917e4bcd</id>
<content type='text'>
</content>
</entry>
<entry>
<title>mbstate: fix compile warning on systems where mbstate_t isn't an integral</title>
<updated>2020-04-13T09:58:38Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-04-13T09:58:38Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=d67f437458ed96b55d475a471d1a16da52ca4cd4'/>
<id>urn:sha1:d67f437458ed96b55d475a471d1a16da52ca4cd4</id>
<content type='text'>
An empty initializer still ensures the entire object is
zero-initialized.
</content>
</entry>
<entry>
<title>input: slow trackpad scrolling now eventually scroll a line</title>
<updated>2020-04-10T16:43:29Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-04-10T16:43:29Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=00dbe12e4196a781bb320070569274e2f1793a4d'/>
<id>urn:sha1:00dbe12e4196a781bb320070569274e2f1793a4d</id>
<content type='text'>
Before, we converted each axis event's scroll amount to an integer and
scrolled that many lines.

However, axis events are speed sensitive - very slow scrolling will
result in events with a scroll amount that is &lt; 1.0.

For us, this meant we never scrolled a single line. You could slow
scroll all day if you wanted, and still we would never scroll a single
line.

Fix this by aggregating the scroll amount from axis events until the
scroll amount is &gt; 1.0, and then scroll.
</content>
</entry>
<entry>
<title>input: right mouse click extends the current selection</title>
<updated>2020-04-04T10:02:07Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-04-04T10:02:07Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=fac4b7310706684bbb719287094d9a9bcd73cb01'/>
<id>urn:sha1:fac4b7310706684bbb719287094d9a9bcd73cb01</id>
<content type='text'>
</content>
</entry>
<entry>
<title>input: hardcoded left mouse button handler requires click-count &lt;= 3</title>
<updated>2020-04-04T09:57:33Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-04-04T09:57:33Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=2344f153d938d4d49ccfbd60fb25e1b2170209b8'/>
<id>urn:sha1:2344f153d938d4d49ccfbd60fb25e1b2170209b8</id>
<content type='text'>
This enables user mappings for the left mouse button with click count
&gt; 3

I.e. it is now possible to create custom quad-click mappings (except
we don't yet support this in footrc).
</content>
</entry>
<entry>
<title>input: only cancel selection on left mouse button clicks</title>
<updated>2020-04-04T09:57:08Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-04-04T09:57:08Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=210c0ee5cd9cdfac3a8f6430c5f5881e01bf48c2'/>
<id>urn:sha1:210c0ee5cd9cdfac3a8f6430c5f5881e01bf48c2</id>
<content type='text'>
</content>
</entry>
<entry>
<title>search: replace hard-coded key bindings with "user configurable" ones</title>
<updated>2020-03-18T14:30:14Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-03-18T14:30:14Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=04191564946d3ba6c1c49e5041e4bd0cda819043'/>
<id>urn:sha1:04191564946d3ba6c1c49e5041e4bd0cda819043</id>
<content type='text'>
They aren't really user configurable. At least not yet.

However, with this, we now handle raw key codes just like the normal
key bindings. Meaning, e.g. ctrl+g, ctrl+a, ctrl+e etc now works while
searching with e.g. a russian layout.
</content>
</entry>
<entry>
<title>input: bindings: don't match raw key code alone - mods must also match</title>
<updated>2020-03-18T13:52:39Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-03-18T13:52:39Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=a69b818a6232a3704e3125e17f7e392382faee84'/>
<id>urn:sha1:a69b818a6232a3704e3125e17f7e392382faee84</id>
<content type='text'>
</content>
</entry>
<entry>
<title>input: bind key bindings to raw key codes too</title>
<updated>2020-03-18T13:29:34Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-03-18T13:29:34Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=6d30e7d15de49ba531cd8f8cd99c356d7f1ca0fc'/>
<id>urn:sha1:6d30e7d15de49ba531cd8f8cd99c356d7f1ca0fc</id>
<content type='text'>
Before, when looking for a matching user key binding, we only
matched *symbols*.

This means that the physical keys that generate a specific key binding
is layout dependent. What's worse, it may not even be possible to
generate the key binding at all.

Russian is one such layout, where all the "normal" (us) symbols are
replaced.

By using raw key codes, we can get around this - the key code has a
direct mapping to the physical key.

However, matching raw key codes **only** doesn't always make sense
either. For now, match **both** symbols _and_ key codes. Symbols take
precedence.

TODO: we might have to make this configurable _per binding_.

Note: 'search' mode still uses mostly hardcoded shortcuts that still
have this problem (i.e. ctrl+g doesn't work with a russian layout).
</content>
</entry>
<entry>
<title>input: key-binding: log error when we fail to translate to XKB symbol</title>
<updated>2020-03-18T09:48:42Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-03-18T09:48:42Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=fb5ab022de00bf1b7b30c57e00ffaaf2beb16610'/>
<id>urn:sha1:fb5ab022de00bf1b7b30c57e00ffaaf2beb16610</id>
<content type='text'>
</content>
</entry>
<entry>
<title>input: remove Sway 1.2 keyboard/pointer workarounds</title>
<updated>2020-03-14T10:54:23Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-03-14T10:54:23Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=c10399694e7f005d9015c7e46ebe6f3fa3fd7587'/>
<id>urn:sha1:c10399694e7f005d9015c7e46ebe6f3fa3fd7587</id>
<content type='text'>
Sway 1.4 is better than 1.2, in that we always have keyboard focus
when we get a keyboard_key() event.

That however is because it doesn't send keyboard_leave() on e.g. a TTY
switch.

Still, this is good enough - foot handles this and doesn't crash. We
are also able to process input without having to refocus the window.

And, Sway master (what will become Sway 1.5) has fixed this for real -
we now get a keyboard_leave() and pointer_leave() event on a TTY
switch. And the corresponding enter events when switching back.
</content>
</entry>
<entry>
<title>input: add debug logs to all keyboard/pointer enter/leave/action events</title>
<updated>2020-03-14T10:51:47Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-03-14T10:51:47Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=53b681c6f47c5df0d977ef3648f3b370ff63a00d'/>
<id>urn:sha1:53b681c6f47c5df0d977ef3648f3b370ff63a00d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>input: maximize: unset fullscreen before toggling maximized state</title>
<updated>2020-03-12T16:47:53Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-03-12T16:47:53Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=62a5805d4b2f0b7f65c53a63147a36cf8f5487f3'/>
<id>urn:sha1:62a5805d4b2f0b7f65c53a63147a36cf8f5487f3</id>
<content type='text'>
</content>
</entry>
<entry>
<title>config: mouse-bindings: verify button isn't already mapped</title>
<updated>2020-03-12T09:46:27Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-03-12T09:46:27Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=c58f9a9ef93fd3fd2be711906b8214a53665e45f'/>
<id>urn:sha1:c58f9a9ef93fd3fd2be711906b8214a53665e45f</id>
<content type='text'>
A button may only be mapped to a single action. Detect when the user
tried to map the same button to multiple actions and error out.

To clear a binding (for example, to free up a button from the default
bindings), one can set the action it is bound to to
`NONE` (e.g. `primary-paste=NONE`).
</content>
</entry>
<entry>
<title>config/input: implement mouse bindings</title>
<updated>2020-03-12T09:20:05Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-03-12T09:20:05Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=45384839f0e9627cd5b376b045e11c14277d40d0'/>
<id>urn:sha1:45384839f0e9627cd5b376b045e11c14277d40d0</id>
<content type='text'>
* New config section, "mouse-bindings", where bindings are defined on
  the form "action=BTN_&lt;name&gt;
* pointer_button() handler now scans the bindings list instead of
  hardcoding primary-paste to BTN_MIDDLE.
* The implementation handles single- double- and triple clicks in the
  bindings, but there is currently no way to define anything but a
  single-click binding in the configuration.
</content>
</entry>
<entry>
<title>bindings: add minimize/maximize/fullscreen actions</title>
<updated>2020-03-12T08:34:09Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-03-12T08:34:09Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=65ff582358c07c8bb69f56dc8192c86d21b620d3'/>
<id>urn:sha1:65ff582358c07c8bb69f56dc8192c86d21b620d3</id>
<content type='text'>
These actions are by default not bound to anything.
</content>
</entry>
<entry>
<title>input: parse_key_binding_for_action: export function</title>
<updated>2020-03-09T18:47:22Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-03-09T18:47:22Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=0c72128405919263127f2771de8a7a8561961219'/>
<id>urn:sha1:0c72128405919263127f2771de8a7a8561961219</id>
<content type='text'>
</content>
</entry>
<entry>
<title>input: parse_key_binding_for_action: repair LOG_DBG statement</title>
<updated>2020-03-09T18:47:01Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-03-09T18:47:01Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=f78a8a77ed18c48cc2369f9a51c683a6b9400a98'/>
<id>urn:sha1:f78a8a77ed18c48cc2369f9a51c683a6b9400a98</id>
<content type='text'>
</content>
</entry>
<entry>
<title>search: add support for user configurable key bindings</title>
<updated>2020-03-08T14:28:47Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-03-08T14:28:47Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=0d188895c3e88f591aa47f7a5c272ad959e5a40d'/>
<id>urn:sha1:0d188895c3e88f591aa47f7a5c272ad959e5a40d</id>
<content type='text'>
No default bindings defined yet, though.
</content>
</entry>
</feed>
