From 51eb4c5d0250ea1e0638d7813432900290ccc4d9 Mon Sep 17 00:00:00 2001 From: Mattias Eriksson Date: Wed, 10 Apr 2024 08:27:23 +0200 Subject: [PATCH] Adapt write_primary to libcosmic changes --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index e33e4f0..2569730 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1652,7 +1652,7 @@ impl Application for App { let terminal = terminal.lock().unwrap(); let term = terminal.term.lock(); if let Some(text) = term.selection_to_string() { - return clipboard::write_primary(text); + return Command::batch([clipboard::write_primary(text), self.update_focus()]); } } } else {