summaryrefslogtreecommitdiff
path: root/alacritty_terminal
diff options
context:
space:
mode:
authorKirill Chibisov <contact@kchibisov.com>2022-06-09 19:31:08 +0300
committerGitHub <noreply@github.com>2022-06-09 16:31:08 +0000
commit90552e3e7f8f085919a39435a8a68b3a2f633e54 (patch)
tree711534a54f813a8aad9fe2c3015478ba5ad03d31 /alacritty_terminal
parent6dc670cde0c136e28c71d4ebe67c5c8bb9df65b1 (diff)
downloadalacritty-90552e3e7f8f085919a39435a8a68b3a2f633e54.tar.gz
alacritty-90552e3e7f8f085919a39435a8a68b3a2f633e54.zip
Fix flickering during resize on Wayland
This also fixes an issue of windows not being rendered while resizing. Fixes #6069.
Diffstat (limited to 'alacritty_terminal')
-rw-r--r--alacritty_terminal/src/term/color.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/alacritty_terminal/src/term/color.rs b/alacritty_terminal/src/term/color.rs
index a9494e7a..1cfdec6b 100644
--- a/alacritty_terminal/src/term/color.rs
+++ b/alacritty_terminal/src/term/color.rs
@@ -20,8 +20,8 @@ pub struct Rgb {
}
impl Rgb {
- /// Implementation of W3C's luminance algorithm:
- /// https://www.w3.org/TR/WCAG20/#relativeluminancedef
+ /// Implementation of W3C's luminance
+ /// [algorithm](https://www.w3.org/TR/WCAG20/#relativeluminancedef)
fn luminance(self) -> f64 {
let channel_luminance = |channel| {
let channel = channel as f64 / 255.;