aboutsummaryrefslogtreecommitdiff
path: root/alacritty/src/main.rs
diff options
context:
space:
mode:
authorKirill Chibisov <contact@kchibisov.com>2020-10-12 12:22:36 +0300
committerGitHub <noreply@github.com>2020-10-12 12:22:36 +0300
commit721f789b5f98ab5c47e6e817c3c2228636ca0a1a (patch)
tree31d9a149fbcf36c9a824856d1da103c06f67f16c /alacritty/src/main.rs
parent56e0f5bb05cab709f815ef9cce027b379ce964b8 (diff)
downloadr-alacritty-721f789b5f98ab5c47e6e817c3c2228636ca0a1a.tar.gz
r-alacritty-721f789b5f98ab5c47e6e817c3c2228636ca0a1a.tar.bz2
r-alacritty-721f789b5f98ab5c47e6e817c3c2228636ca0a1a.zip
Make use of glutin wayland/x11 features
This should allow users that are not using Wayland/X11 to reduce the resulted binary size and compilation times.
Diffstat (limited to 'alacritty/src/main.rs')
-rw-r--r--alacritty/src/main.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/alacritty/src/main.rs b/alacritty/src/main.rs
index 19ae917b..66806056 100644
--- a/alacritty/src/main.rs
+++ b/alacritty/src/main.rs
@@ -48,7 +48,7 @@ mod scheduler;
mod url;
mod window;
-#[cfg(not(any(target_os = "macos", windows)))]
+#[cfg(all(feature = "wayland", not(any(target_os = "macos", windows))))]
mod wayland_theme;
mod gl {
@@ -160,10 +160,7 @@ fn run(
// The PTY forks a process to run the shell on the slave side of the
// pseudoterminal. A file descriptor for the master side is retained for
// reading/writing to the shell.
- #[cfg(not(any(target_os = "macos", windows)))]
let pty = tty::new(&config, &display.size_info, display.window.x11_window_id());
- #[cfg(any(target_os = "macos", windows))]
- let pty = tty::new(&config, &display.size_info, None);
// Create the pseudoterminal I/O loop.
//