<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/foot.git/selection.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-15T11:11:12Z</updated>
<entry>
<title>selection: optimize \r\n -&gt; \n when receiving clipboard data</title>
<updated>2019-12-15T11:11:12Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-12-15T11:11:12Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=2f475d7b44fd2e0426c0b96d980605debaede15a'/>
<id>urn:sha1:2f475d7b44fd2e0426c0b96d980605debaede15a</id>
<content type='text'>
Instead of first memmoving, possibly lots of data lots of times, the
received buffer, and _then_ calling the callback, simply call the
callback multiple times, and just skip the \r character(s).
</content>
</entry>
<entry>
<title>selection: break out isword() to a new file</title>
<updated>2019-12-03T18:16:58Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-12-03T18:16:05Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=198529525c788f51babcd425ea7dcdb4d8125c04'/>
<id>urn:sha1:198529525c788f51babcd425ea7dcdb4d8125c04</id>
<content type='text'>
</content>
</entry>
<entry>
<title>term: add term_mouse_grabbed()</title>
<updated>2019-11-30T16:06:15Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-11-30T16:06:15Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=2208f4304b799dbaaf52629d8ef3ce5629f16184'/>
<id>urn:sha1:2208f4304b799dbaaf52629d8ef3ce5629f16184</id>
<content type='text'>
When this returns true, it means we have keyboard focus and are
grabbing the mouse (for e.g. selections), regardless of whether the
client has enabled mouse tracking or not.
</content>
</entry>
<entry>
<title>selection: forced selection requires keyboard focus</title>
<updated>2019-11-30T10:59:47Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-11-30T10:59:47Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=edb78575c7a7193e60d0f226143f75a29360290b'/>
<id>urn:sha1:edb78575c7a7193e60d0f226143f75a29360290b</id>
<content type='text'>
Up the requirements for enabling "forced" selection (that is, allowing
selections even though mouse tracking has been disabled).

* Require keyboard focus (if we don't have it, then the shift-key
  isn't is for us)
* Don't just require shift being pressed, but that all other modifiers
  are *not* pressed.
</content>
</entry>
<entry>
<title>async: first synchronous write may succeed partially</title>
<updated>2019-11-28T18:20:25Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-11-28T18:20:25Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=903581b7eb05a566373eb784eeb958b9cd792493'/>
<id>urn:sha1:903581b7eb05a566373eb784eeb958b9cd792493</id>
<content type='text'>
When trying to write (to e.g. the slave, or to a clipboard receiver),
we first try to send the data synchronously, and only if that fails do
we switch to asynchronous mode.

However, the first synchronous may (in fact, is likely to) succeed
partially.
</content>
</entry>
<entry>
<title>selection: text_to_clipboard: assert the clipboard serial is not 0</title>
<updated>2019-11-22T20:55:47Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-11-22T20:52:59Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=fc7069e1a6bb7f75b63eec699dd5cfb401b4f3b5'/>
<id>urn:sha1:fc7069e1a6bb7f75b63eec699dd5cfb401b4f3b5</id>
<content type='text'>
</content>
</entry>
<entry>
<title>selection: selection_to_clipboard: exit early on no-selection</title>
<updated>2019-11-22T20:55:47Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-11-22T20:52:12Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=f9e7ae8a891666274ad9309b95fb2675a36a9305'/>
<id>urn:sha1:f9e7ae8a891666274ad9309b95fb2675a36a9305</id>
<content type='text'>
When there's no selection, exit early to avoid trying to get grid data
from row -1.
</content>
</entry>
<entry>
<title>selection: we already have a direct pointer to the clipboard struct</title>
<updated>2019-11-22T20:55:46Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-11-22T20:51:53Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=da92abef312ee7cbc2fceeb49c950a792ce7c0c5'/>
<id>urn:sha1:da92abef312ee7cbc2fceeb49c950a792ce7c0c5</id>
<content type='text'>
</content>
</entry>
<entry>
<title>selection: buffer may be empty if only empty cells where selected</title>
<updated>2019-11-16T09:56:10Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-11-16T09:56:10Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=b31c18c7413222480c6d33ee2aa5ee4025902a35'/>
<id>urn:sha1:b31c18c7413222480c6d33ee2aa5ee4025902a35</id>
<content type='text'>
</content>
</entry>
<entry>
<title>scan-build: fix a couple of minor warnings from a scan-build run</title>
<updated>2019-11-05T09:39:36Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-11-05T09:39:36Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=15b12f45c69751014f7a96f089ba32a76f97d4a6'/>
<id>urn:sha1:15b12f45c69751014f7a96f089ba32a76f97d4a6</id>
<content type='text'>
</content>
</entry>
<entry>
<title>selection: make text_from_{clipboard,primary} async</title>
<updated>2019-11-05T08:09:51Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-11-05T08:09:51Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=b17358bd0aee9b3ca0b03d68b5b55330aeebbf4e'/>
<id>urn:sha1:b17358bd0aee9b3ca0b03d68b5b55330aeebbf4e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>selection: initialize 'ctx' before jumping into its scope</title>
<updated>2019-11-05T07:51:10Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-11-05T07:51:10Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=dd57418494196f83f164ea075e87ba9ad5d0ebb6'/>
<id>urn:sha1:dd57418494196f83f164ea075e87ba9ad5d0ebb6</id>
<content type='text'>
</content>
</entry>
<entry>
<title>selection: text_from_{clipboard,primary}: add 'done' callback</title>
<updated>2019-11-05T07:49:32Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-11-05T07:49:32Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=b15032d223115ad0f65a182804ba914bf0fcc51b'/>
<id>urn:sha1:b15032d223115ad0f65a182804ba914bf0fcc51b</id>
<content type='text'>
This callback is *always* called, including when there has been an
error.

This is in preparation for making text_from_{clipboard,primary}
asynchronous.
</content>
</entry>
<entry>
<title>selection: async send: handle POLLHUP</title>
<updated>2019-11-05T07:40:39Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-11-05T07:40:39Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=9cd22dc398ebe9fed80a4a4d48bee3467c2732ac'/>
<id>urn:sha1:9cd22dc398ebe9fed80a4a4d48bee3467c2732ac</id>
<content type='text'>
</content>
</entry>
<entry>
<title>selection: free strdup:ed clipboard data on fdm failure</title>
<updated>2019-11-05T07:40:24Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-11-05T07:40:24Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=1207ad1502d82d0acd079cd702a267bd2f70d90e'/>
<id>urn:sha1:1207ad1502d82d0acd079cd702a267bd2f70d90e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>selection: remove debug assert</title>
<updated>2019-11-05T07:40:01Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-11-05T07:40:01Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=8824e3823e23e64f64fa55927352830b3e504292'/>
<id>urn:sha1:8824e3823e23e64f64fa55927352830b3e504292</id>
<content type='text'>
</content>
</entry>
<entry>
<title>selection: typedef not needed here (copy-paste from fdm.h)</title>
<updated>2019-11-05T07:39:39Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-11-05T07:39:39Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=bb9dad18f4941d7985c5825e8210728852534a11'/>
<id>urn:sha1:bb9dad18f4941d7985c5825e8210728852534a11</id>
<content type='text'>
</content>
</entry>
<entry>
<title>selection: we don't set user data on primary/clipboard data sources</title>
<updated>2019-11-04T13:11:18Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-11-04T13:11:18Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=dbb51ed4c920fa9e48e7065fa8ae528dd8e4e582'/>
<id>urn:sha1:dbb51ed4c920fa9e48e7065fa8ae528dd8e4e582</id>
<content type='text'>
</content>
</entry>
<entry>
<title>selection: try to write selection data synchronously first</title>
<updated>2019-11-04T13:00:51Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-11-04T13:00:51Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=cebeb390e4bae2e00524b0bdd12281a3d4514387'/>
<id>urn:sha1:cebeb390e4bae2e00524b0bdd12281a3d4514387</id>
<content type='text'>
Only if we fail to write everything do we switch to asynchronous mode.
</content>
</entry>
<entry>
<title>selection: send primary/clipboard data asynchronously</title>
<updated>2019-11-04T12:11:15Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-11-04T12:11:15Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=60c3ff8737165b572ba9ff66f68eff02652a0400'/>
<id>urn:sha1:60c3ff8737165b572ba9ff66f68eff02652a0400</id>
<content type='text'>
TODO: try writing synchronously first
</content>
</entry>
</feed>
