aboutsummaryrefslogtreecommitdiff
path: root/alacritty/src/ipc.rs
diff options
context:
space:
mode:
authorChristian Duerr <contact@christianduerr.com>2021-12-23 10:23:06 +0000
committerGitHub <noreply@github.com>2021-12-23 12:23:06 +0200
commit3af1940192245f96f0b7c8e2d2d5c4a5d8eb98a1 (patch)
treed2e8132a7b0acfc6f44c7f8e4ca0d7f5f78a5432 /alacritty/src/ipc.rs
parent6d1a63ef28d18168ed4ca0d6a8c3413cb4621ca5 (diff)
downloadr-alacritty-3af1940192245f96f0b7c8e2d2d5c4a5d8eb98a1.tar.gz
r-alacritty-3af1940192245f96f0b7c8e2d2d5c4a5d8eb98a1.tar.bz2
r-alacritty-3af1940192245f96f0b7c8e2d2d5c4a5d8eb98a1.zip
Fix CreateNewWindow CLI fallback
The existing behavior for the new CreateNewWindow actions was to always pass in their own options, which would discard the existing options configured on the terminal's PTY config. To fix this the behavior for CreateNewWindow is now the same as for the initial window creation, the config values are overwritten conditionally based on their individual presence in the CLI options. However all temporary CLI options set on the "master" Alacritty instance are discarded by all future windows. Fixes #5659.
Diffstat (limited to 'alacritty/src/ipc.rs')
-rw-r--r--alacritty/src/ipc.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/alacritty/src/ipc.rs b/alacritty/src/ipc.rs
index 6f02e757..a71b5139 100644
--- a/alacritty/src/ipc.rs
+++ b/alacritty/src/ipc.rs
@@ -58,8 +58,8 @@ pub fn spawn_ipc_socket(options: &Options, event_proxy: EventLoopProxy<Event>) -
// Handle IPC events.
match message {
- SocketMessage::CreateWindow(terminal_options) => {
- let event = Event::new(EventType::CreateWindow(Some(terminal_options)), None);
+ SocketMessage::CreateWindow(options) => {
+ let event = Event::new(EventType::CreateWindow(options), None);
let _ = event_proxy.send_event(event);
},
}