diff options
author | Christian Duerr <contact@christianduerr.com> | 2024-04-23 17:42:16 +0200 |
---|---|---|
committer | Josh Rahm <rahm@google.com> | 2024-08-14 15:42:41 -0600 |
commit | c9a360155c65a0e22a88d4d1db347d487f6712da (patch) | |
tree | f6917248abe9162e5c508a0d6817e427add49141 /alacritty/src/window_context.rs | |
parent | 1012c64d45e598e53465cbe12a596665ebaf6619 (diff) | |
download | r-alacritty-c9a360155c65a0e22a88d4d1db347d487f6712da.tar.gz r-alacritty-c9a360155c65a0e22a88d4d1db347d487f6712da.tar.bz2 r-alacritty-c9a360155c65a0e22a88d4d1db347d487f6712da.zip |
Fix dynamic title override for multiple windows
This fixes an issue where Windows spawned after the initial one through
IPC or bindings would not update their title due to the initial window
having its title set through the CLI.
Title changes are still inhibited for additional windows when they are
spawned through `alacritty msg create-window` with the `--title` CLI
option added.
Closes #6836.
Diffstat (limited to 'alacritty/src/window_context.rs')
-rw-r--r-- | alacritty/src/window_context.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/alacritty/src/window_context.rs b/alacritty/src/window_context.rs index 891551bb..f0f24fe8 100644 --- a/alacritty/src/window_context.rs +++ b/alacritty/src/window_context.rs @@ -399,7 +399,7 @@ impl WindowContext { /// Process events for this terminal window. pub fn handle_event( &mut self, - event_loop: &EventLoopWindowTarget<Event>, + #[cfg(target_os = "macos")] event_loop: &EventLoopWindowTarget<Event>, event_proxy: &EventLoopProxy<Event>, clipboard: &mut Clipboard, scheduler: &mut Scheduler, @@ -445,6 +445,7 @@ impl WindowContext { preserve_title: self.preserve_title, config: &self.config, event_proxy, + #[cfg(target_os = "macos")] event_loop, clipboard, scheduler, |