aboutsummaryrefslogtreecommitdiff
path: root/src/input.rs
diff options
context:
space:
mode:
authorIvan Molodetskikh <yalterz@gmail.com>2023-11-24 22:43:15 +0400
committerIvan Molodetskikh <yalterz@gmail.com>2023-11-24 22:48:30 +0400
commitae47f2116decc046836c9e02880af79bf5f507ee (patch)
tree0e32022d5efa9b2fe2a515448b3d2422c8ae043a /src/input.rs
parent9f24b48d8fc14169db5e676f25595f0f7fe17017 (diff)
downloadniri-ae47f2116decc046836c9e02880af79bf5f507ee.tar.gz
niri-ae47f2116decc046836c9e02880af79bf5f507ee.tar.bz2
niri-ae47f2116decc046836c9e02880af79bf5f507ee.zip
Move command spawning to a thread
It was showing up on profiles causing dropped frames.
Diffstat (limited to 'src/input.rs')
-rw-r--r--src/input.rs4
1 files changed, 1 insertions, 3 deletions
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();