Commit graph

2333 commits

Author SHA1 Message Date
Daniel Eklöf
9601ed7cfb
wayland: calculate a single, scaled DPI value
Previously, we calculated the monitors horizontal and vertical PPI
values.

For font sizing, we used the vertical PPI value. It seems however,
that using the diagonal PPI value, i.e. diagonal_px / diagonal_inch,
gives more consistent results.

This is still a PPI value, but since it is intended to be used as a
FontConfig DPI value, name it 'dpi'.
2020-07-29 06:58:16 +02:00
Daniel Eklöf
d675cf8720
input: margins are not selectable
* Fix col/row calculation in pointer-enter event; we did not take the
  margins into account.
* seat->mouse.col,row are now set to -1 if the cursor is inside the
  margins. That is, col/row are only ever valid when the mouse is
  actually over the grid, and not in the margins.
* Use regular 'left-ptr' mouse cursor when mouse is inside the
  margins, to not make the user think he/she can start a selection.

Besides making things clearer, this also fixes a crash that occurred
if you started a selection in e.g. the right margin.
2020-07-29 06:57:22 +02:00
Daniel Eklöf
363a0de8b9
changelog: add 1.4.4 section 2020-07-29 06:55:23 +02:00
Daniel Eklöf
e71108d7c3
meson/pkgbuild: bump version to 1.4.3 2020-07-27 18:55:28 +02:00
Daniel Eklöf
4143f331ff
changelog: prepare for 1.4.3 2020-07-27 18:55:12 +02:00
Daniel Eklöf
a3db31d5cb
Merge branch 'master' into releases/1.4 2020-07-27 18:54:25 +02:00
Daniel Eklöf
77afd61525
doc: foot.5: modifiers+keys are plural 2020-07-27 16:45:34 +02:00
Daniel Eklöf
7127a0a6c3
selection: extending a selection is now interactive
That is, a selection extension can be resized just like an ordinary
extension.
2020-07-27 16:44:41 +02:00
Daniel Eklöf
50bd51c4d4
tokenize: handle escaped quotes
We only support escaping quotes inside a quote, and only of the same
type as the enclosing quote.

I.e.

  "double quote \"escaped double quote\""

But not

  "double quote \'invalid escaped single quote\'"
2020-07-27 16:43:41 +02:00
Daniel Eklöf
3b2492029e
Merge branch 'tokenizer-reset-argv-on-error'
Closes #49.
2020-07-27 16:42:02 +02:00
Daniel Eklöf
faad093627
changelog: mention fix for crash on unclosed quote in tokenizer 2020-07-27 16:41:35 +02:00
Daniel Eklöf
a9eeeedc90
tokenize: remove newline from log message (LOG_ERR appends one for us) 2020-07-27 06:04:29 +02:00
Daniel Eklöf
22cd25d360
tokenize: reset *argv = NULL on error
This allows the caller to call free() without having to worry about
whether it has already been free:d or not.

Closes #49.
2020-07-27 06:03:30 +02:00
Daniel Eklöf
80741371c9
doc: benchmark: update 'laptop' results after foot-1.4.0 2020-07-25 14:21:01 +02:00
Daniel Eklöf
4153d77feb
changelog: add 'contributors' section 2020-07-25 13:55:05 +02:00
Daniel Eklöf
58cec40016
doc: benchmarks: update 'desktop' results after foot-1.4.0 release 2020-07-25 13:51:24 +02:00
Daniel Eklöf
6413736052
Merge branch 'manpage' 2020-07-25 13:46:29 +02:00
Daniel Eklöf
ee92840363
Merge branch 'footrc' 2020-07-25 13:44:35 +02:00
Jonas 'cherti' Große Sundrup
ed945611a6
Add inline color-number-mapping as comment 2020-07-25 13:42:13 +02:00
Jonas 'cherti' Große Sundrup
38ba3f5429
Add configuration instructions to the README 2020-07-25 13:38:13 +02:00
Jonas 'cherti' Große Sundrup
b5668a72d3
Correct the location of footrc in manpage 2020-07-25 13:30:43 +02:00
Daniel Eklöf
9f82cbaa49
search: fix crash when searching the scrollback history
search_update_selection() was changed in 1.4.x to *first* update the
selection, *then* move the viewport.

This leads to a crash if the new match (selection) is outside the
current viewport; the selection code assumes the updated selection
endpoint is in the visible viewport.

Changing back to *first* move the viewport, *then* update the
selection solves this.
2020-07-25 11:23:54 +02:00
Daniel Eklöf
057ff3ba21
readme: spelling fixes 2020-07-25 09:52:30 +02:00
Daniel Eklöf
82a33966ed
Merge branch 'birger-patch-1' 2020-07-25 09:50:45 +02:00
birger
3f993d00b7 Fix typo 2020-07-25 09:41:50 +02:00
birger
bc3b464745 Fix typos 2020-07-25 09:39:03 +02:00
Daniel Eklöf
700edff214
pkgbuild: include changelog 2020-07-25 09:06:04 +02:00
Daniel Eklöf
373745c597
meson: install LICENSE, README.md and CHANGELOG.md 2020-07-25 09:05:11 +02:00
Daniel Eklöf
3d15913d38
license: fix bad copy-paste: first commit was in 2019 2020-07-25 08:50:57 +02:00
Daniel Eklöf
c50a442810
readme: add section describing how to identify foot 2020-07-24 17:50:48 +02:00
Daniel Eklöf
8d81dde5b8
search: improve viewport movements
* Don't move the viewport if the new match is already fully visible
* When we do have to move the viewport, position it such that the new
  match ends up roughly in the middle.
2020-07-24 17:49:50 +02:00
Daniel Eklöf
60984e7a24
csi: secondary DA: do not pretend we're xterm
Previously, our secondary DA response indicated a) VT420, b) an XTerm
version number.

Now, we indicate VT220 (which corresponds to the primary DA response),
and we report foot's version number as MMmmpp. I.e major, minor and
patch versions, using two digits.

E.g. 1.4.2 is encoded as 010402
2020-07-24 17:47:47 +02:00
Daniel Eklöf
cc60d3a670
csi: primary DA: remove features we do not support
We do not implement

* Selective Erase
* Technical Character Set
* Terminal state interrogation
2020-07-24 17:46:18 +02:00
Daniel Eklöf
0c11542eca
changelog: add new 'unreleased' section 2020-07-23 18:56:47 +02:00
Daniel Eklöf
e838c0ce24
Merge branch 'releases/1.4' 2020-07-23 18:55:14 +02:00
Daniel Eklöf
c2a58451e0
meson/pkgbuild: bump to 1.4.2 2020-07-23 18:51:48 +02:00
Daniel Eklöf
0e0d6aea86
changelog: prepare for 1.4.2 2020-07-23 18:51:33 +02:00
Daniel Eklöf
1c8e103c92
Merge branch 'master' into releases/1.4 2020-07-23 18:50:50 +02:00
Daniel Eklöf
f6473756d9
sixel: remove sixel-to-be-splitted *before* splitting it
This fixes an assertion in debug builds, due to the pre-splitted and
splitted sixels overlapping.
2020-07-23 18:15:29 +02:00
Daniel Eklöf
fda6e9c2c9
sixel: overwrite: use target sixel's height, not cell height
When copying the image data for the left and right parts of the
splitted images, use the sixel's height, not the cell height.

This fixes a crash when the sixel didn't cover the entire cell height.
2020-07-23 18:13:54 +02:00
Daniel Eklöf
3869c7299f
render: bump maximum window title length from 100 to 2048 (bytes)
Apparently, the max is ~8K, but lets stay on the safe side.
2020-07-22 21:07:57 +02:00
Daniel Eklöf
d58f88661f
changelog: add new 'unreleased' section 2020-07-22 20:06:07 +02:00
Daniel Eklöf
90f0b6be0a
Merge branch 'releases/1.4' 2020-07-22 20:05:17 +02:00
Daniel Eklöf
b238443a71
meson/pkgbuild: bump version to 1.4.1 2020-07-22 20:03:48 +02:00
Daniel Eklöf
d1f02af308
changelog: prepare or 1.4.1 2020-07-22 20:03:28 +02:00
Daniel Eklöf
6b6db610cc
Merge branch 'master' into releases/1.4 2020-07-22 20:01:59 +02:00
Daniel Eklöf
10f53325e1
input: pipe: avoid goto's where variables may be uninitialized 2020-07-22 19:34:07 +02:00
Daniel Eklöf
63d73f8685
changelog: add a new 'unreleased' section 2020-07-22 19:11:57 +02:00
Daniel Eklöf
230555a89d
Merge branch 'releases/1.4' 2020-07-22 19:10:46 +02:00
Daniel Eklöf
591829bf50
meson/pkgbuild: bump version to 1.4.0, require fcft 2.2.2 2020-07-22 18:59:36 +02:00