Commit Graph
351 Commits
Author SHA1 Message Date
Kirill Chibisov a189861880 Update winit to 0.29.1-beta
Make use of new winit frame throttling mechanism used in RedrawRequested,
which removes the need for having Wayland queue to ask for the frame
callbacks.

Fixes #7011.
2023-09-04 03:01:12 +04:00
Christian Duerr 73276b6207 Update regex-automata to v0.3.6
This seems like a sensible first step before looking into #7097.
2023-08-27 16:48:55 +00:00
Max Brunsfeld 3330614219 Remove winit dependency from alacritty_config 2023-08-17 17:33:29 +00:00
Kirill Chibisov 7b9f32300e Use ahash instead of fnv and regular hash function
After evaluation of the ahash with the data alacritty uses it was
discovered that it's 1.5-2x times faster when getting the already
hashed values, which is the primary cases for alacritty's renderer.

Given that ahash is generally faster, all the HashSet and HashMap's
inside the alacritty were changed to use it as a hasher function.
2023-07-24 06:11:25 +00:00
Kirill ChibisovandChristian Duerr 0c94e4ae7b Add terminal config section to control OSCs
Some environments demand certain OSC sequences to be disabled or
some escape sequence could require handling which is out of scope
of alacritty, but could be done by external script (OSC 777).

Added section for now just handles the `OSC 52` sequence and changes
its default to be `OnlyCopy`, which is handy for remote copy, but
`Paste` is redundant because normal `Paste` hotkey could be used as
well.

Fixes #3386.

Co-authored-by: Christian Duerr <contact@christianduerr.com>
2023-07-22 18:31:35 +00:00
Kirill Chibisov db903503df Update to the new winit keyboard API
The main highlight of this update is that alacritty will now use new
keyboard API from the winit, which resolves a lot of issues around
key bindings, such as ability to bind dead keys. It also fixes long
standing issues with the virtual key code bindings and make bindings
in general more predictable. It also makes our default Vi key bindings
fully working.

Given that alacritty was using `VirtualKey` directly in the bindings
from the winit, and winit simply removed the enum, we've added internal
conversions to minimize the fallout, but new way to specify the bindings
should be more intuitive.

Other part of this update fixes some forward compatibility bugs with the
Wayland backend, given that wayland-rs 0.30 is fully forward compatible.
The update also fixes weird Maximized startup issues on GNOME Wayland,
however they were present on any sane compositor.

Fixes #6842.
Fixes #6455.
Fixes #6184.
Fixes #5684.
Fixes #3574.
Fixes #3460.
Fixes #1336.
Fixes #892.
Fixes #458.
Fixes #55.
2023-07-11 02:22:14 +00:00
Kirill Chibisov 104ae3665c Add version 0.12.2 to CHANGELOG
This is only an update to the development version and does not represent
a stable release.
2023-07-01 22:13:24 +04:00
Kirill Chibisov 727531406c Fix freeze with some drivers when using GLX
Fixes #6972.
2023-06-17 00:58:29 +00:00
Christian Duerr bd4906722a Switch to TOML configuration format
This switches Alacritty's default configuration format from yaml to
toml. While yaml is still supported, it is done by converting it to toml
and should be removed entirely in the future.

All existing features were persisted based on my testing. Behavior
should not change much, though `--option` might have slightly different
behavior since the entire line is not interpreted as one line of toml.

A new `alacritty migrate` subcommand has been added which allows
automatic migration from yaml to toml. This also could be used as a
facility to automatically fix configuration file changes in the future.

Closes #6592.
2023-06-12 00:23:41 +00:00
Pavel RoskinandChristian Duerr 724f3be3c9 Bump dependencies
Co-authored-by: Christian Duerr <contact@christianduerr.com>
2023-06-11 06:31:29 +00:00
Anhad SinghandChristian Duerr cb7ad5b7e6 Switch to VTE's built-in ansi feature
Co-authored-by: Christian Duerr <contact@christianduerr.com>
2023-05-23 20:35:58 +00:00
Kirill Chibisov f0379f2da7 Add version 0.12.1 to CHANGELOG 2023-05-22 03:06:19 +03:00
Kirill Chibisov 6e7f466c68 Update patch dependencies 2023-05-17 08:36:41 +03:00
Kirill Chibisov 6f6ad2b2ee Update clap to v4.2.7
Fixes #6879.
Fixes #6874.
2023-05-17 08:36:41 +03:00
Kirill Chibisov 04811c674b Update xdg and dirs crate
The recent version on xdg crate moved to home crate which is used
by cargo. Thus to query for home directory we can use the home
dependency instead which is smaller.
2023-05-17 08:36:41 +03:00
Kirill Chibisov b1feba6916 Update bitflags to 2.2.1 2023-05-17 08:36:41 +03:00
Kirill Chibisov 0b32cfbb59 Update glutin to 0.30.8 and winit to 0.28.6
Fixes #6920.
Fixes #6824.
2023-05-16 03:03:11 +03:00
Kirill Chibisov 9a5b4850f8 Fix very long startup time on some Wayland systems
This is not a real fix for the issue given that dbus method sctk-adwaita
is using will being called anyway. The proper fix will be available
with the winit's 0.29.0 release.

Right now the delay reduced from around 20 seconds to 100ms on a
systems with broken xdg-desktop-portal setup.
2023-05-07 23:05:23 +03:00
Kirill Chibisov 9910d650d7 Bump winit to 0.28.5
The 0.28.4 was yanked.
2023-05-06 22:32:13 +03:00
Kirill Chibisov 934d6a2dd7 Bump winit to 0.28.4
Fixes #6817.
2023-05-04 21:17:37 +03:00
Kirill Chibisov 2377c0a728 Bump winit to 0.28.3
Fix macOS leak when closing the window.
2023-03-17 13:51:27 +00:00
Kirill Chibisov 53322bef61 Bump x11-clipboard to v0.7.1
Fixes #6760.
2023-03-09 14:49:03 +00:00
Kirill Chibisov f5e41d967a Bump winit to 0.28.2
This also bumps copypasta and sctk-adwaita.

Fixes #6744.
Fixes #6702.
Fixes #6696.
Fixes #2741.
2023-03-05 06:21:04 +00:00
Kirill Chibisov 9cf2c89fd1 Bump development version to 0.13.0-dev
This is only an update to the development version and does not represent
a stable release.
2023-02-15 02:19:19 +03:00
Kirill Chibisov b0195eb8b7 Bump glutin to 0.30.6
Fixes #6694.
2023-02-12 17:04:59 +03:00
Kirill Chibisov 6edb113f14 Bump glutin to 0.30.5 2023-02-12 00:41:02 +03:00
Kirill Chibisov 2d27fff796 Make gles2 renderer actually gles2
Fixes #6209.
2023-02-07 22:08:24 +03:00
Kirill Chibisov 8a838710e3 Bump winit to 0.28.1
This fixes crash on Wayland with multiple windows.
2023-02-02 15:09:47 +03:00
Kirill Chibisov 799d8f75bb Fix notify doing active polling
The `notify-debouncer-mini` spawn a thread which checks the events
every timeout, which is not desired since we want to avoid active
polling.

This commit re-implements debouncer based on the `RecommendedWatcher`
without adding an extra thread on top and not doing any busy-waiting.

Fixes #6652.
2023-02-02 13:13:23 +03:00
oxalica 3354203e57 Update ndk-sys to workaround cargo checksum issue
See https://github.com/rust-lang/cargo/issues/11412
2023-02-02 12:47:19 +03:00
Kirill Chibisov 1c878a0476 Update winit to 0.28
Fixes #6644.
Fixes #6615.
Fixes #6558.
Fixes #6515.
Fixes #3187.
Fixes #62.
2023-02-02 11:30:23 +03:00
dependabot[bot] 2ed79e3e39 Bump bumpalo from 3.11.0 to 3.12.0 2023-01-23 11:00:53 +00:00
Kirill Chibisov 6566dd3def Fix damage computation on boundaries
Given that the Rect started to use signed integers saturating_sub
became irrelevant and no clamp to zero were performed. This commit
uses max instead to fix it.
2022-12-09 09:21:28 +03:00
Kirill Chibisov 79860622a7 Fix crash while typing on Wayland
Fixes #6487.
2022-12-06 04:06:50 +00:00
Kirill Chibisov 706682646b Bump glutin to 0.30.2
Fixes #6498.
2022-12-02 00:45:10 +03:00
James McCoyandChristian Duerr d92a8a0e16 Update to notify v5 via notify_debouncer_mini
Notify v5 moved the debounced API into the notify_debouncer_mini crate.
The debounced API doesn't provide details on the type of event that
happened, just that a list of events or errors happened. Therefore,
reload is triggered on any event for a matching path.

Co-authored-by: Christian Duerr <contact@christianduerr.com>
2022-11-15 14:10:08 +00:00
Kirill Chibisov 0e418bc2f7 Update glutin to 0.30.0
The glutin 0.30.0 update decouples glutin from winit which
provides us with basis for a multithreaded renderer. This
also improves robustness of our configuration picking,
context creation, and surface handling.

As an example we're now able to start on systems without a vsync,
we don't try to build lots of contexts to check if some config works,
and so on.

That also brings us possibility to handle context losses, but that's
a future work.

Fixes #1268.
2022-11-03 19:37:54 +03:00
Kirill Chibisov 578e08486d Update winit to 0.27.5
Fixes #6396.
2022-10-26 23:04:35 +03:00
Kirill Chibisov 2a2d38fcaa Bump crossfont and sctk-adwaita
Fixes #6432.
Fixes #6414.
Fixes #6400.
Fixes #6338.
2022-10-26 01:32:02 +03:00
Kirill Chibisov 182086f59c Bump winit to 0.27.4
Fixes #6370.
Fixes #6356.
2022-10-09 22:57:06 +00:00
killian e9ee8dcd9f Migrate from winapi to windows-sys 2022-09-30 11:49:02 +00:00
Christian Duerr 3a38f0b996 Update unicode-width to Unicode 15
This applies all not-breaking dependency changes, including an update to
unicode-width. This brings support for Unicode 15 with its new widths
table so new glyphs and Emojis are shown correctly.
2022-09-17 13:10:38 +00:00
Kirill Chibisov 5bbba6973f Bump winit to 0.27.3
Fixes #6324.
Fixes #6313.
2022-09-15 23:51:06 +03:00
Kirill Chibisov f2e74d9947 Update Cargo.lock for new -dev bump 2022-09-12 12:03:27 +00:00
Christian Duerr 4ddb608563 Add IPC config subcommand
This patch adds a new mechanism for changing configuration options
without editing the configuration file, by sending options to running
instances through `alacritty msg`.

Each window will load Alacritty's configuration file by default and then
accept IPC messages for config updates using the `alacritty msg config`
subcommand. By default all windows will be updated, individual windows
can be addressed using `alacritty msg config --window-id
"$ALACRITTY_WINDOW_ID"`.

Each option will replace the config's current value and cannot be reset
until Alacritty is restarted or the option is overwritten with a new
value.

Configuration options are passed in the format `field.subfield=value`,
where `value` is interpreted as yaml.

Closes #472.
2022-09-01 01:48:38 +03:00
Kirill Chibisov 5549e9eb04 Bump winit to 0.27.2 2022-08-13 10:06:54 +04:00
Kirill Chibisov 7d708d53f7 Bump glutin to 0.29.1
Fixes #6239.
Fixes #5975.
Fixes #5876.
Fixes #5767.
Fixes #4484.
Fixes #3139.
2022-08-10 16:48:46 +04:00
Chris Copeland 2a676dfad8 Fix thin strokes on macOS
Remove the `font.use_thin_strokes` config, which only did anything on
macOS and only prior to Big Sur. Instead, we will enable or disable
"font smoothing" on macOS based on the `AppleFontSmoothing` user
default.

These changes let users get the "thin strokes" behavior by setting
`AppleFontSmoothing` to 0 with:

```sh
$ defaults write -g AppleFontSmoothing -int 0
```

(Or replace `-g` with `org.alacritty` to apply this setting only to
Alacritty.app, rather than the whole system.)

Add a `removed` config attribute to show helpful warnings to users
who are using config options that don't do anything anymore, and apply
this attribute to `font.use_thin_strokes`.

Bump `crossfont` to 0.5.0 to pick up the new font smoothing behavior.
This release also includes a fix for a crash when trying to load a
disabled font.

Fixes #4616.
Fixes #6108.
2022-07-15 21:56:26 +00:00
a5ob7r 6018590d7b Bump dirs to 4.0.0
This is to remove dependencies on multiple versions of dirs crate.
2022-06-20 14:19:04 +00:00
Christian Duerr 9236242857 Bump copypasta to 0.8.1
Fixes #6140.
2022-06-18 05:48:14 +00:00