1
1
mirror of https://github.com/wez/wezterm.git synced 2024-12-23 13:21:38 +03:00

window: fix compilation warning when wayland feature disabled

This commit is contained in:
Wez Furlong 2021-03-21 20:20:24 -07:00
parent 8dbcb3e00c
commit a7c9d9123b

View File

@ -8,7 +8,7 @@ use crate::os::wayland::window::WaylandWindow;
use crate::os::x11::connection::XConnection;
use crate::os::x11::window::XWindow;
use crate::WindowConfigHandle;
use crate::{config, Clipboard, MouseCursor, ScreenPoint, WindowCallbacks, WindowOps};
use crate::{Clipboard, MouseCursor, ScreenPoint, WindowCallbacks, WindowOps};
use promise::*;
use std::any::Any;
use std::rc::Rc;
@ -30,7 +30,7 @@ impl Connection {
pub(crate) fn create_new() -> anyhow::Result<Connection> {
#[cfg(feature = "wayland")]
{
if config().enable_wayland() {
if crate::config().enable_wayland() {
match WaylandConnection::create_new() {
Ok(w) => {
log::debug!("Using wayland connection!");