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:
parent
8dbcb3e00c
commit
a7c9d9123b
@ -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!");
|
||||
|
Loading…
Reference in New Issue
Block a user