aboutsummaryrefslogtreecommitdiff
path: root/alacritty/src/window_context.rs
diff options
context:
space:
mode:
authorKirill Chibisov <contact@kchibisov.com>2024-05-04 20:51:56 +0400
committerJosh Rahm <rahm@google.com>2024-08-14 15:42:41 -0600
commit823c945b0049565bfce1b26010183a2874dd06fe (patch)
tree07fc6c35e694893ee3db090b6090ad8485d73fc1 /alacritty/src/window_context.rs
parentab31d0ec5bfaaf0084ffadf468932440c019224a (diff)
downloadr-alacritty-823c945b0049565bfce1b26010183a2874dd06fe.tar.gz
r-alacritty-823c945b0049565bfce1b26010183a2874dd06fe.tar.bz2
r-alacritty-823c945b0049565bfce1b26010183a2874dd06fe.zip
Bump winit to 0.30.0
Diffstat (limited to 'alacritty/src/window_context.rs')
-rw-r--r--alacritty/src/window_context.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/alacritty/src/window_context.rs b/alacritty/src/window_context.rs
index f0f24fe8..f5fb5cc5 100644
--- a/alacritty/src/window_context.rs
+++ b/alacritty/src/window_context.rs
@@ -17,7 +17,7 @@ use log::info;
use raw_window_handle::HasRawDisplayHandle;
use serde_json as json;
use winit::event::{Event as WinitEvent, Modifiers, WindowEvent};
-use winit::event_loop::{EventLoopProxy, EventLoopWindowTarget};
+use winit::event_loop::{ActiveEventLoop, EventLoopProxy};
use winit::window::WindowId;
use alacritty_terminal::event::Event as TerminalEvent;
@@ -70,7 +70,7 @@ pub struct WindowContext {
impl WindowContext {
/// Create initial window context that does bootstrapping the graphics API we're going to use.
pub fn initial(
- event_loop: &EventLoopWindowTarget<Event>,
+ event_loop: &ActiveEventLoop,
proxy: EventLoopProxy<Event>,
config: Rc<UiConfig>,
options: WindowOptions,
@@ -120,7 +120,7 @@ impl WindowContext {
/// Create additional context with the graphics platform other windows are using.
pub fn additional(
&self,
- event_loop: &EventLoopWindowTarget<Event>,
+ event_loop: &ActiveEventLoop,
proxy: EventLoopProxy<Event>,
config: Rc<UiConfig>,
options: WindowOptions,
@@ -399,7 +399,7 @@ impl WindowContext {
/// Process events for this terminal window.
pub fn handle_event(
&mut self,
- #[cfg(target_os = "macos")] event_loop: &EventLoopWindowTarget<Event>,
+ #[cfg(target_os = "macos")] event_loop: &ActiveEventLoop,
event_proxy: &EventLoopProxy<Event>,
clipboard: &mut Clipboard,
scheduler: &mut Scheduler,