From ae47f2116decc046836c9e02880af79bf5f507ee Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Fri, 24 Nov 2023 22:43:15 +0400 Subject: Move command spawning to a thread It was showing up on profiles causing dropped frames. --- src/input.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/input.rs') diff --git a/src/input.rs b/src/input.rs index 96b21c7f..063d321c 100644 --- a/src/input.rs +++ b/src/input.rs @@ -118,9 +118,7 @@ impl State { self.backend.toggle_debug_tint(); } Action::Spawn(command) => { - if let Some((command, args)) = command.split_first() { - spawn(command, args); - } + spawn(command); } Action::ScreenshotScreen => { let active = self.niri.layout.active_output().cloned(); -- cgit