egui_winit: support winit with default features disabled (#1971)

* egui_winit: support winit with default features disabled

* Link to the PR in the changelog
This commit is contained in:
Koute
2022-08-30 08:49:32 +02:00
committed by GitHub
parent 153524023f
commit be9f363c53
4 changed files with 11 additions and 4 deletions
+3
View File
@@ -21,6 +21,8 @@ mod window_settings;
pub use window_settings::WindowSettings;
use winit::event_loop::EventLoopWindowTarget;
#[cfg(feature = "wayland")]
#[cfg(any(
target_os = "linux",
target_os = "dragonfly",
@@ -777,6 +779,7 @@ fn translate_cursor(cursor_icon: egui::CursorIcon) -> Option<winit::window::Curs
/// Returns a Wayland display handle if the target is running Wayland
fn wayland_display<T>(_event_loop: &EventLoopWindowTarget<T>) -> Option<*mut c_void> {
#[cfg(feature = "wayland")]
#[cfg(any(
target_os = "linux",
target_os = "dragonfly",