Skip to content

Commit

Permalink
Use new EventLoop::run_app API
Browse files Browse the repository at this point in the history
  • Loading branch information
kchibisov committed May 3, 2024
1 parent 8daf410 commit 47d4494
Show file tree
Hide file tree
Showing 4 changed files with 382 additions and 372 deletions.
6 changes: 2 additions & 4 deletions alacritty/src/clipboard.rs
Expand Up @@ -3,7 +3,6 @@ use raw_window_handle::RawDisplayHandle;

use alacritty_terminal::term::ClipboardType;

#[cfg(any(test, not(any(feature = "x11", target_os = "macos", windows))))]
use copypasta::nop_clipboard::NopClipboardContext;
#[cfg(all(feature = "wayland", not(any(target_os = "macos", windows))))]
use copypasta::wayland_clipboard;
Expand Down Expand Up @@ -31,9 +30,8 @@ impl Clipboard {
}
}

/// Used for tests and to handle missing clipboard provider when built without the `x11`
/// feature.
#[cfg(any(test, not(any(feature = "x11", target_os = "macos", windows))))]
/// Used for tests, to handle missing clipboard provider when built without the `x11`
/// feature, and as default clipboard value.
pub fn new_nop() -> Self {
Self { clipboard: Box::new(NopClipboardContext::new().unwrap()), selection: None }
}
Expand Down

0 comments on commit 47d4494

Please sign in to comment.