fix build without wayland feature

Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
fufesou
2022-07-27 06:34:27 -07:00
parent a29203c9fe
commit f3d10dd420
3 changed files with 11 additions and 10 deletions

View File

@@ -59,3 +59,9 @@ pub trait TraitCapturer {
#[cfg(windows)]
fn set_gdi(&mut self) -> bool;
}
#[cfg(x11)]
#[inline]
pub fn is_x11() -> bool {
"x11" == hbb_common::platform::linux::get_display_server()
}