From 90552e3e7f8f085919a39435a8a68b3a2f633e54 Mon Sep 17 00:00:00 2001 From: Kirill Chibisov Date: Thu, 9 Jun 2022 19:31:08 +0300 Subject: Fix flickering during resize on Wayland This also fixes an issue of windows not being rendered while resizing. Fixes #6069. --- alacritty_terminal/src/term/color.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'alacritty_terminal/src') 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.; -- cgit