aboutsummaryrefslogtreecommitdiff
path: root/src/input.rs
diff options
context:
space:
mode:
authorIvan Molodetskikh <yalterz@gmail.com>2024-05-11 09:33:23 +0400
committerIvan Molodetskikh <yalterz@gmail.com>2024-05-11 09:33:23 +0400
commit1c14a0a2a97867878c65ea33fa8b927618efb555 (patch)
tree16bb26bf1d8b83fca5d768bce7577443e26584e5 /src/input.rs
parent2fd9a03bd71b4709659cdd35192109b47c3b0e10 (diff)
downloadniri-1c14a0a2a97867878c65ea33fa8b927618efb555.tar.gz
niri-1c14a0a2a97867878c65ea33fa8b927618efb555.tar.bz2
niri-1c14a0a2a97867878c65ea33fa8b927618efb555.zip
Add a reset-window-height action
Diffstat (limited to 'src/input.rs')
-rw-r--r--src/input.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/input.rs b/src/input.rs
index 95f16b9b..208d48f0 100644
--- a/src/input.rs
+++ b/src/input.rs
@@ -780,6 +780,9 @@ impl State {
Action::SetWindowHeight(change) => {
self.niri.layout.set_window_height(change);
}
+ Action::ResetWindowHeight => {
+ self.niri.layout.reset_window_height();
+ }
Action::ShowHotkeyOverlay => {
if self.niri.hotkey_overlay.show() {
self.niri.queue_redraw_all();