aboutsummaryrefslogtreecommitdiff
path: root/src/input/mod.rs
diff options
context:
space:
mode:
authorvanderlokken <vanderlokken@gmail.com>2025-08-09 16:20:08 +0400
committerGitHub <noreply@github.com>2025-08-09 12:20:08 +0000
commit67361f88fd01974ebee4cf80f0e29c87d805cc39 (patch)
tree593a2d419a6a830186b7027166ca637ee5232611 /src/input/mod.rs
parentf74d83dccaa6e8fffb38c304dd5d1eae07b87d24 (diff)
downloadniri-67361f88fd01974ebee4cf80f0e29c87d805cc39.tar.gz
niri-67361f88fd01974ebee4cf80f0e29c87d805cc39.tar.bz2
niri-67361f88fd01974ebee4cf80f0e29c87d805cc39.zip
Add the `LoadConfigFile` action (#2163)
* Add the `LoadConfigFile` action * fixes --------- Co-authored-by: Ivan Molodetskikh <yalterz@gmail.com>
Diffstat (limited to 'src/input/mod.rs')
-rw-r--r--src/input/mod.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/input/mod.rs b/src/input/mod.rs
index 2aba1f97..c2667dfc 100644
--- a/src/input/mod.rs
+++ b/src/input/mod.rs
@@ -2113,6 +2113,11 @@ impl State {
}
self.niri.queue_redraw_all();
}
+ Action::LoadConfigFile => {
+ if let Some(watcher) = &self.niri.config_file_watcher {
+ watcher.load_config();
+ }
+ }
}
}