Commit Graph

25 Commits

Author SHA1 Message Date
Kirill Chibisov 04f0bcaf54
Use frame callbacks instead of vsync on Wayland
Instead of blocking on vsync, Alacritty now requests a notification from
wayland about when the next frame should be rendered. this helps with
input latency, since it gives alacritty more time to process events
before a redraw. it also prevents alacritty from drawing unless the
compositor tells it to do so.

Fixes #2851.
2020-05-03 23:29:11 +00:00
Kirill Chibisov 33abfe34a8
Add config option to set cursor thickness
Fixes #3526.
2020-04-15 03:50:34 +00:00
Kirill Chibisov f14d24542c
Fix various mouse mode + vi mode interactions
This commit fixes some issues introduced by
1a8cd172e520e493bacc9c6a2ae6f80de086eaa3:

 1. Vi cursor not moving properly on double/triple click
 2. URL not launching via mouse click in vi mode + mouse mode
 3. Ability to select in mouse mode with double/triple click regardless
    of shift modifier
2020-04-10 21:23:50 +03:00
Kirill Chibisov 2fc5120327
Use config colors to theme Wayland decorations
Fixes #2092.
2020-04-09 04:02:10 +03:00
Christian Duerr 1a8cd172e5
Add modal keyboard motion mode
This implements a basic mode for navigating inside of Alacritty's
history with keyboard bindings. They're bound by default to vi's motion
shortcuts but are fully customizable. Since this relies on key bindings
only single key bindings are currently supported (so no `ge`, or
repetition).

Other than navigating the history and moving the viewport, this mode
should enable making use of all available selection modes to copy
content to the clipboard and launch URLs below the cursor.

This also changes the rendering of the block cursor at the side of
selections, since previously it could be inverted to be completely
invisible. Since that would have caused some troubles with this keyboard
selection mode, the block cursor now is no longer inverted when it is at
the edges of a selection.

Fixes #262.
2020-03-18 02:35:08 +00:00
Christian Duerr cc2fc0b1c3
Update to glutin 0.24.0
Fixes #3266.
Fixes #3248.
Fixes #3188.
Fixes #3177.
Fixes #2445.
Fixes #1574.
2020-03-12 01:31:59 +03:00
Christian Duerr 64a3115648
Fix selection with invisible start and end
This resolves an issue with the selection clamping, where no selection
would be rendered at all when the start was above the viewport while the
end was below it.
2020-03-07 22:17:38 +00:00
Timo f83d55f0f0
Fix ignoring of slow touchpad scrolling
Fixes #3377.
2020-03-02 08:32:18 +03:00
Christian Duerr 43f89a64c2
Remove unnecessary macos focus check
Since winit now filters out clicks on unfocused windows on macOS
anyways, we don't need to implement this logic ourselves anymore.
2020-02-27 23:42:39 +00:00
Kirill Chibisov db9e8d4b97
Update glutin to v0.23.0
Fixes #3191.
Fixes #3150.
Fixes #1465.
Fixes #1359.
2020-02-07 16:44:11 +03:00
Christian Duerr 3203d2b3fa Fix reset CLI parameters on config reload (#3216)
Fix reset CLI parameters on config reload

Fixes #3197.
2020-01-17 02:42:26 +03:00
Christian Duerr c1664b348d
Remove synthetic keyboard event handling
Fixes #3109.
2020-01-14 17:01:43 +01:00
Christian Duerr a82df6ac43
Fix font size reset when moving between screens
Fixes #3183.
2020-01-11 05:19:40 +01:00
Christian Duerr c34ec12c30
Bump glutin to 0.22.0
Fixes #3165.
2020-01-10 01:51:37 +00:00
Christian Duerr 1cfb0740bc
Bump winit to 0.20.0 Alpha 6
Fixes #3070.
Fixes #2893.
Fixes #2877.
Fixes #2829.
Fixes #2767.
Fixes #2271.
2020-01-05 01:00:50 +00:00
David Hewitt 08a1225748 Send PTY resize messages through event loop
This allows us to clean up the Arcs on windows, as well as tidy up
the code on unix a little too.

Fixes #3086.
2019-12-14 22:32:24 +01:00
David Hewitt 88b4dbfc5a Fix minimize causing resize Windows 2019-12-09 18:26:31 +01:00
Maciej Makowski 48861e4633 Fix WinPTY freeze on termination
Fixes #2889.
2019-11-16 22:11:56 +01:00
Christian Duerr cce3af3d91
Fix incorrect DPI at startup on X11
Fixes #2938.
2019-11-12 00:18:33 +01:00
Christian Duerr c6510a29e6
Fix modifier inconsistencies
Fixes #2906.
2019-11-11 22:05:24 +01:00
Christian Duerr 93e87eb0f1
Fix incorrect cell foreground when clearing screen
This fixes a bug that would clear the cells with the current template
cell with just the `flags` reset, to make sure the colors are correct.
However, the cell foreground was not reset, leading to cells counting as
occupied when resizing.

With this change both cell flags and foreground color are ignored when
clearing both the whole screen and inside the line, allowing us to
accurately keep track of cell occupation.

Fixes #2866.
2019-11-04 00:14:23 +01:00
Christian Duerr b47a88b142
Fix URL highlighting
Fixes #2898.
Fixes #2479.
2019-11-03 21:59:28 +01:00
wayne fa6ceacfa4 Add live config reload for font family and style
Fixes #2737.
2019-11-03 20:02:26 +01:00
Kenny Levinsen 77127fbb41 Fix bell not redrawing without event updates
Fixes #2914.
2019-10-25 00:26:33 +02:00
Christian Duerr 729eef0c93
Update to winit/glutin EventLoop 2.0
This takes the latest glutin master to port Alacritty to the EventLoop
2.0 rework.

This changes a big part of the event loop handling by pushing the event
loop in a separate thread from the renderer and running both in
parallel.

Fixes #2796.
Fixes #2694.
Fixes #2643.
Fixes #2625.
Fixes #2618.
Fixes #2601.
Fixes #2564.
Fixes #2456.
Fixes #2438.
Fixes #2334.
Fixes #2254.
Fixes #2217.
Fixes #1789.
Fixes #1750.
Fixes #1125.
2019-10-05 02:29:26 +02:00