From aee25c9efcfa85b6029d5d1a2b7aaac7d87ae9d1 Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Tue, 20 Oct 2026 17:03:48 +0300 Subject: [PATCH] Redraw important hotkeys when hide-not-bound changes --- src/niri.rs | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/niri.rs b/src/niri.rs index d7d180a0..2f3c4581 100644 --- a/src/niri.rs +++ b/src/niri.rs @@ -1790,10 +1790,10 @@ impl State { let binds_changed = config.binds != old_config.binds; let new_mod_key = self.backend.mod_key(&config); + let mut hotkey_overlay_changed = + config.hotkey_overlay.hide_not_bound != old_config.hotkey_overlay.hide_not_bound; if new_mod_key != self.backend.mod_key(&old_config) || binds_changed { - self.niri - .hotkey_overlay - .on_hotkey_config_updated(new_mod_key); + hotkey_overlay_changed = true; self.niri.mods_with_mouse_binds = mods_with_mouse_binds(new_mod_key, &config.binds); self.niri.mods_with_horizontal_wheel_binds = mods_with_horizontal_wheel_binds(new_mod_key, &config.binds); @@ -1804,6 +1804,11 @@ impl State { self.niri.mods_with_finger_scroll_binds = mods_with_finger_scroll_binds(new_mod_key, &config.binds); } + if hotkey_overlay_changed { + self.niri + .hotkey_overlay + .on_hotkey_config_updated(new_mod_key); + } if config.window_rules != old_config.window_rules { window_rules_changed = true;