Commit Graph
344 Commits
Author SHA1 Message Date
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
Christian Duerr 4c171e7678 Bump copypasta to 0.8.0
This also applies all non-breaking semver updates.
2022-06-16 18:36:27 +03:00
Christian Duerr 9f02fb9568 Add value hints for clap file paths
This ensures that the generated completions properly suggest file paths
for arguments which accept them.
2022-06-16 18:01:13 +03:00
6dc670cde0 Support dual source blending in GLES2 renderer
GLES2 has GL_EXT_blend_func_extended extension that enables
dual-source blending, so essentially we can reuse fragment shader
from GLSL3 renderer and do 1 rendering pass instead of 3 for the
text.

Co-authored-by: Kirill Chibisov <contact@kchibisov.com>
Co-authored-by: Christian Duerr <contact@christianduerr.com>
2022-06-08 12:02:57 +03:00
Kirill Chibisov 8f1abe13e6 Add damage tracking and reporting to compatible compositors
This allows compositors to only process damaged (that is, updated)
regions of our window buffer, which for larger window sizes (think 4k)
should significantly reduce compositing workload under compositors that
support/honor it, which is good for performance, battery life and lower
latency over remote connections like VNC.

On Wayland, clients are expected to always report correct damage, so
this makes us a good citizen there. It can also aid remote desktop
(waypipe, rdp, vnc, ...) and other types of screencopy by having damage
bubble up correctly.

Fixes #3186.
2022-02-02 00:12:58 +03:00
Christian Duerr e38f51c6bd Remove time dependency
In 7398e9f a regression was introduced which causes Alacritty to crash
on startup since wayland has a keyboard repeat rate thread started
before our logger is initialized.

Since the latest version of time was rather inconvenient to use anyway
and there is no nice solution for this issue other than downgrading the
`time` version again, the time since startup is now logged instead of
the local time.

This should still provide all the relevant information, while getting
rid of an unnecessary dependency. While it would be possible to also
print the delta between log messages, this can be trivially computed so
it has been omitted to skip adding another `Mutex` to the `Logger`
struct.
2022-01-13 08:36:22 +03:00
James McCoy 1c9fa73165 Update time crate to 0.3.5
Due to unsoundness issues (c.f., time-rs/time#380 and time-rs/time#293),
determining the local timezone can only happen while single-threaded.

Determine the timezone early in startup and apply the offset to the UTC
timestamp before formatting.
2022-01-13 01:53:03 +00:00
Kirill Chibisov a8c8c57907 Fix use-after-free when formatting Wayland protocol error 2022-01-11 16:22:30 +03:00