Daniel Eklöf
028bbd03a3
input: don’t do alternate mode scrolling if application is grabbing mouse
2020-09-15 18:40:51 +02:00
Daniel Eklöf
6ad90e6323
input: don’t do grid scrollback if mouse events are being captured
2020-09-15 18:33:58 +02:00
Daniel Eklöf
0bba1edb9c
meson/pkgbuild: require fcft-2.2.90
2020-09-15 08:03:52 +02:00
Daniel Eklöf
fdfdbba9a0
render: best-effort attempt to set initial window size in chars when scale != 1
...
The initial window size is set *before* we’re initially mapped. This
means we don’t (yet) know on which output we’ll be mapped. _That_
means we don’t know which scaling factor to use.
This implements a best effort attempt, where we use the “guessed”
scaling factor. This will always be correct in single-monitor
configurations, but may be wrong in multi-monitor setups with
different scaling factors.
2020-09-14 17:36:56 +02:00
Daniel Eklöf
51a7e44fa2
config: add tweak.scaling-filter
...
Use the new fcft_set_scaling_filter() API to use a non-default scaling
filter.
By default, we use lanczo3, the ‘best’ filter. This overrides the
default in fcft, which is ‘cubic’ filtering.
2020-09-13 17:59:56 +02:00
Daniel Eklöf
6a9725c7a6
config: log warning when new boolean tweak options have been enabled
2020-09-12 19:52:52 +02:00
Daniel Eklöf
2d4a59ab99
Merge branch 'scroll-half-page' into master
...
Closes #128
2020-09-11 18:22:09 +02:00
Daniel Eklöf
4d13429235
key-binding: deprecate scrollback-up/down, add scrollback-up/down-line
...
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.
2020-09-10 18:17:47 +02:00
Daniel Eklöf
c0156ed1e0
Merge branch 'hide-csd-buttons-when-title-bar-gets-too-small' into master
2020-09-10 07:38:03 +02:00
Daniel Eklöf
3a308cc870
render: csd: hide buttons when title bar gets too small to fit them
2020-09-10 07:37:54 +02:00
Daniel Eklöf
c841ab1ee1
Merge branch 'cursor-outside-visible-area-on-reflow' into master
2020-09-10 07:37:21 +02:00
Daniel Eklöf
a1ab31eea5
grid: reflow: make sure cursor is within the visible screen area
...
Even though we translate the cursor position from the old grid
coordinates to the new, the cursor may _still_ end up outside the
visible area.
Make sure it doesn’t.
2020-09-10 07:37:08 +02:00
Daniel Eklöf
fc510d423b
Merge branch 'osc52-clear-selection-on-invalid-payload' into master
2020-09-10 07:36:19 +02:00
Daniel Eklöf
2e3bd5e23c
config: add scrollback-{up,down}-half key bindings
...
These new bindings scroll up/down half a page in the
scrollback (instead of the full page scrolled by
‘scrollback-{up,down}’).
Closes #128 .
2020-09-09 19:40:48 +02:00
Daniel Eklöf
a132e6cf84
config: spelling: mosue -> mouse
2020-09-09 19:04:24 +02:00
Daniel Eklöf
419bd87098
osc52: use first source that actually *has* data
2020-09-09 19:01:42 +02:00
Daniel Eklöf
776b831d89
osc52: unset (clear) selection when an invalid payload is received
2020-09-09 19:01:39 +02:00
Daniel Eklöf
dec6f963cb
selection: add selection_<type>_has_data()
...
Returns true when there is data available for paste in the
clipboard/primary selection.
2020-09-09 19:01:21 +02:00
Daniel Eklöf
c3cacb4704
selection: add selection_<type>_unset()
...
These functions clear the current selection.
2020-09-09 19:01:21 +02:00
Daniel Eklöf
99023cae99
Merge branch 'window-size-in-characters' into master
2020-09-09 19:00:30 +02:00
Daniel Eklöf
da091fb9d3
Merge branch 'keymap-shift-return' into master
2020-09-09 19:00:13 +02:00
Daniel Eklöf
0ff962a182
Merge branch 'fix-pipe-selected-not-being-recognized-as-a-valid-action' into master
...
Closes #125
2020-09-09 18:59:09 +02:00
Daniel Eklöf
eb6737ca25
Add -W,--window-size-chars, and foot.ini:initial-window-size-chars
...
* Add -W,--window-size-chars command line option
* Add initial-window-size-chars foot.ini option
* Add -w,--window-size-pixels command line option
* Add initial-window-size-pixels foot.ini option
* Deprecate -g,--geometry command line option in favor of
-w,--window-size-pixels
* Deprecate geometry option in foot.ini in favor of
initial-window-size-pixels
2020-09-08 19:41:00 +02:00
Daniel Eklöf
fa6ad0f030
changelog: move deprecation section up first, change most ‘footrc’ -> ‘foot.ini’
...
The deprecation sections mentions ‘footrc’ being deprecated, and
replaced by ‘foot.ini’. Since a lot of the changelog entries refer to
foot.ini, make sure the user sees this first.
Also, use foot.ini (and not footrc) consistently in all changelog entries.
2020-09-08 19:37:59 +02:00
Daniel Eklöf
04e8588e05
config: key binding: free pipe cmd/argv when action is invalid
2020-09-08 19:09:36 +02:00
Daniel Eklöf
eb45cb7b60
wayland: set BIND_ACTION_KEY_COUNT correctly
...
This fixes an issue where ‘pipe-selected’ were not recognized as a
valid key action.
Closes #125
2020-09-08 19:08:26 +02:00
Daniel Eklöf
18e00a55f6
keymap: emit \E[27;2;13~ for all key combinations involving Shift+Return
...
This is what XTerm emits with `modifyOtherKeys=1`, which is foot’s only mode.
2020-09-07 22:20:13 +02:00
Daniel Eklöf
e81d23befc
Merge branch 'tweak-damage-everything' into master
2020-09-07 19:44:54 +02:00
Daniel Eklöf
19ec06b999
Merge branch 'reflow-multi-column-composed-characters' into master
2020-09-07 19:41:42 +02:00
Daniel Eklöf
5f64c5c335
input: fix assertion when pressing first one mouse button, then another
2020-09-07 19:35:25 +02:00
Daniel Eklöf
6e4d29ef71
render: change minimum window size from 4x20 -> 1x2 (rows/cols)
2020-09-07 19:34:06 +02:00
Daniel Eklöf
61f950f77a
grid: reflow: calculate width of composed characters correctly
...
Before this patch, reflow called `wcwidth()` on our magic values for
composed characters.
2020-09-06 19:14:46 +02:00
Daniel Eklöf
f9cbdd3b11
changelog: scrollback indicator did not exist in 1.4(.4)
...
Thus it’s wrong to say its behavior has changed.
2020-09-06 19:05:17 +02:00
Daniel Eklöf
d040284cc7
config: add tweak.damage-whole-window
...
When enabled, foot will ‘damage’ the entire window, instead of just
the modified/updated rows.
This will force the compositor to redraw/blend the whole window.
This can be used to workaround an issue with fractional scaling in
Gnome, where random thin lines may appear.
2020-09-06 17:52:07 +02:00
Daniel Eklöf
4179e480e8
config: use correct config file path when logging errors and warnings
2020-09-06 14:48:15 +02:00
Daniel Eklöf
c40ada903d
doc: foot.ini: max-shm-pool-size-mb: a value of 0 disables the feature
2020-09-06 09:34:58 +02:00
Daniel Eklöf
dd19173989
Merge branch 'improve-handling-of-private-usage-area-characters' into master
...
Closes #116
2020-09-06 08:28:20 +02:00
Daniel Eklöf
123c94379b
doc: foot.ini: remove empty lines after option name
2020-09-05 09:38:48 +02:00
Daniel Eklöf
3b763c12cb
Merge branch 'handle-xdg-output-manager-coming-after-output-objects' into master
...
Closes #118
2020-09-04 20:03:10 +02:00
Daniel Eklöf
26d37b3305
changelog: output objects received before XDG output manager
2020-09-04 18:08:37 +02:00
Daniel Eklöf
f2c59f8608
wayland: register xdg-output interface on pre-existing output objects
...
The XDG output manager object may arrive *after* output objects. In
this case, we need to register the pre-existing output objects with
the XDG output manager.
This fixes an issue with some monitors having a DPI value of 0 on
Gnome/mutter, which resulted in incorrect font sizes.
2020-09-04 17:56:40 +02:00
Daniel Eklöf
b71016c25d
render: optionally enable heuristics that deal with private usage area chars
...
Try to detect double-width *glyphs* for single-width *characters*, and
allow them to overflow into the next cell.
This is only done for single-width chars with a glyph width that is at
least 1.5 cells wide, but at most 3 cells.
The feature is gated by the new
‘tweak.allow-overflowing-double-width-glyphs’, and is disabled by
default.
Closes #116
2020-09-03 17:37:44 +02:00
Daniel Eklöf
bb8d9378c9
Merge branch 'refresh-margins-on-background-palette-change' into master
...
Closes #94
2020-09-01 18:49:34 +02:00
Daniel Eklöf
b76d196569
render: ’redraw_margins’ is now a parameter to grid_render()
...
render_refresh_margins() now passes ’true’ here, instead of re-setting
term->render.last_buf to NULL.
2020-09-01 08:01:48 +02:00
Daniel Eklöf
d579c0e1e4
osc: explicitly refresh margins on a background color change
2020-09-01 07:34:41 +02:00
Daniel Eklöf
2488c3935b
render: implement render_refresh_margins()
...
For now, it will reset term->render.last_buf to NULL, and then calls
grid_render() to do a full screen refresh.
2020-09-01 07:33:44 +02:00
Daniel Eklöf
52af2694ff
Merge branch 'config-file-location' into master
...
Closes #110 .
2020-08-28 18:11:12 +02:00
Daniel Eklöf
b957f2faa7
doc: meson: @01@ -> @1@
2020-08-27 21:22:27 +02:00
Daniel Eklöf
6f114f639a
config: close FD if it is *valid*, not when it is *invalid*
2020-08-27 21:11:03 +02:00
Daniel Eklöf
a24109a5e3
doc: foot.ini: highlight configuration file paths with bold, not italic/underline
2020-08-27 21:09:54 +02:00