From b2629192ab9926b095d0abe85fedbc353e5e348c Mon Sep 17 00:00:00 2001 From: Christian Duerr Date: Mon, 12 Oct 2020 22:13:38 +0000 Subject: Fix incorrect X11 feature check See https://github.com/alacritty/alacritty/commit/721f789b5f98ab5c47e6e817c3c2228636ca0a1a#r43183826. --- alacritty/src/display.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'alacritty/src/display.rs') diff --git a/alacritty/src/display.rs b/alacritty/src/display.rs index a4cf5cc5..0c5948fe 100644 --- a/alacritty/src/display.rs +++ b/alacritty/src/display.rs @@ -590,7 +590,7 @@ impl Display { self.window.swap_buffers(); - #[cfg(all(feature = "wayland", not(any(target_os = "macos", windows))))] + #[cfg(all(feature = "x11", not(any(target_os = "macos", windows))))] if self.is_x11 { // On X11 `swap_buffers` does not block for vsync. However the next OpenGl command // will block to synchronize (this is `glClear` in Alacritty), which causes a -- cgit