Commit graph

2403 commits

Author SHA1 Message Date
Daniel Eklöf
f6533a71e4
user-notification: 'productify' the user-warning system
* Rename user_warning to user_notification
* Add warning and error types (in addition to the existing deprecated)
* Simplify logic when emitting a user notification after forking; we
  don't need to copy the notification data since we're in a new
  process and have total control over that memory.
2020-07-30 18:58:54 +02:00
Daniel Eklöf
79c17f44d9
readme: remove 'explanation' of server/daemon mode
It is described in a separate section anyway.
2020-07-30 18:54:42 +02:00
Daniel Eklöf
7767041c2c
config: tokenize key bindings' pipe command when loading the configuration
This allows us to detect syntax errors early on, and is also more
efficient since we don't have to re-tokenize the command line every
time the binding is executed.
2020-07-30 18:53:51 +02:00
Daniel Eklöf
6a186cb356
changelog: use <section>.<option> syntax 2020-07-30 18:50:01 +02:00
Daniel Eklöf
113759b0a9
slave: don't ignore write(3) errors 2020-07-29 19:46:20 +02:00
Daniel Eklöf
aed5b9e539
config: emit a user-warning for deprecated option 'scrollback' 2020-07-29 19:43:11 +02:00
Daniel Eklöf
b3d0215c38
term: add capability to print warnings *inside* the terminal
This is intended to be used to print e.g. deprecation warnings inside
the terminal, *before* the shell is started.
2020-07-29 19:42:12 +02:00
Daniel Eklöf
906c8f4d16
changelog: update scrollback indicator entry to reflect moved options 2020-07-29 17:50:19 +02:00
Daniel Eklöf
86e7cb04c4
main: add --check-config command line option 2020-07-29 17:48:22 +02:00
Daniel Eklöf
d11d374252
config: add scrollback section
* Move 'scrollback' to 'scrollback.lines'
* Move (the new) 'scrollback-indicator-*' options to
  'scrollback.indicator-*'

Log a deprecation warning when the old 'scrollback' option is used,
but don't remove it, yet.
2020-07-29 17:41:24 +02:00
Daniel Eklöf
25e745cd8a
doc: footrc.5: add 'uniq | tac' to the pipe-visible example 2020-07-29 17:32:55 +02:00
Daniel Eklöf
919f31ffcb
search/config: configurable key bindings for (scrollback) search mode 2020-07-29 17:27:01 +02:00
Daniel Eklöf
c1653c7237
render: make compiler happy; make sure 'cell_count' has been initialized
Compiler, in release builds, complains about 'cell_count' "may be used
uninitialized". This isn't true, as it is initialized in every
possible switch case below.

But, make the compiler happy and zero-initialize it before the switch
statement.
2020-07-29 07:25:56 +02:00
Daniel Eklöf
d361951dd5
changelog: scrollback indicator is a *new* feataure 2020-07-29 07:08:14 +02:00
Daniel Eklöf
63a5343dd4
Merge branch 'releases/1.4' into master 2020-07-29 07:07:46 +02:00
Daniel Eklöf
6b22758f35
meson/pkgbuild: update version to 1.4.4 2020-07-29 07:02:43 +02:00
Daniel Eklöf
a4d2a2bf28
changelog: add extra newline between index and first release 2020-07-29 07:01:44 +02:00
Daniel Eklöf
f8d9bf18e5
config: handle trailing comments and empty values 2020-07-29 07:01:10 +02:00
Daniel Eklöf
7eee2d715d
changelog: improved font size consistency across monitors with different DPI 2020-07-29 06:59:06 +02:00
Daniel Eklöf
fb57e56308
term: use the monitors diagonal DPI value, instead of it's vertical PPI value 2020-07-29 06:58:29 +02:00
Daniel Eklöf
423bfd388a
term: store current font DPI as a float instead of an integer
FontConfig's DPI is a double, and using a float instead of an integer
results in higher resolution.
2020-07-29 06:58:20 +02:00
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
ebd816bb98
readme: license: write out "MIT license" 2020-07-28 20:53:39 +02:00
Daniel Eklöf
e802fd4c9e
readme: move 'requirements' into INSTALL.md 2020-07-28 20:51:54 +02:00
Daniel Eklöf
e1c8da576e
readme: now that the install section is so short, move it up 2020-07-28 20:50:35 +02:00
Daniel Eklöf
f418115bdf
readme: move installation instructions to INSTALL.md 2020-07-28 20:49:23 +02:00
Daniel Eklöf
403b6bd323
changelog: move #47 to the correct release 2020-07-28 20:07:53 +02:00
Daniel Eklöf
bbd386b4c0
Merge branch 'diagonal-dpi'
Closes #47.
2020-07-28 20:02:26 +02:00
Daniel Eklöf
295083059c
Merge branch 'master' into diagonal-dpi 2020-07-28 20:01:56 +02:00
Daniel Eklöf
df75880672
changelog: improved font size consistency across monitors with different DPI 2020-07-28 20:00:32 +02:00
Daniel Eklöf
47d9b947f0
config: fix check for scrollback-indicator-format=percentage 2020-07-28 19:57:26 +02:00
Daniel Eklöf
2882fbb537
config: add free-form text variant to 'scrollback-indicator-format'
And make the empty string the new default.
2020-07-28 19:56:53 +02:00
Daniel Eklöf
eadb5a4a88
config: handle trailing comments and empty values 2020-07-28 19:55:09 +02:00
Daniel Eklöf
698c9b240f
readme: add link to license 2020-07-28 19:53:32 +02:00
Daniel Eklöf
c3f01bda23
doc: footrc.5: add references to foot.1 and footclient.1 2020-07-27 20:09:40 +02:00
Daniel Eklöf
62c4f1e5b4
doc: rename foot.5 -> footrc.5 2020-07-27 20:09:40 +02:00
Daniel Eklöf
718e5b4a77
config: rename scrollback-indicator-style to scrollback-indicator-position 2020-07-27 20:09:36 +02:00
Daniel Eklöf
aca5a64954
render: scrollback indicator: apply weston sub-surface quirk 2020-07-27 20:00:42 +02:00
Daniel Eklöf
1d3498989b
Merge branch 'scrollback-position-indicator'
Closes #42
2020-07-27 19:08:49 +02:00
Daniel Eklöf
9d85913136
changelog: move scrollback indicator entries from 1.4.3 to 'unreleased' 2020-07-27 19:08:28 +02:00
Daniel Eklöf
0c8b44ab67
changelog: add link to issue 2020-07-27 19:07:00 +02:00
Daniel Eklöf
02fef60160
Merge branch 'master' into scrollback-position-indicator 2020-07-27 19:06:02 +02:00
Daniel Eklöf
ddbca7ca55
changelog: add new 'unreleased' section 2020-07-27 19:00:25 +02:00
Daniel Eklöf
198c79439c
Merge branch 'releases/1.4' 2020-07-27 18:59:10 +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
5c20069588
Merge branch 'master' into scrollback-position-indicator 2020-07-27 16:51:39 +02:00