GlazeWM is a tiling window manager for macOS and Windows inspired by i3wm.
use wm_common::WmEvent;
use crate::wm_state::WmState;
pub fn disable_binding_mode(name: &str, state: &mut WmState) {
state.binding_modes = state
.binding_modes
.iter()
.filter(|config| config.name != name)
.cloned()
.collect::<Vec<_>>();
state.emit_event(WmEvent::BindingModesChanged {
new_binding_modes: state.binding_modes.clone(),
});
}