Skip to content

GlazeWM is a tiling window manager for macOS and Windows inspired by i3wm.

feat: allow keybindings to run if an ignored window has focus

Lars Berger891bee19fd19
diff --git a/packages/wm/src/wm.rs b/packages/wm/src/wm.rs
index 7cac5670..76d99c40 100644
--- a/packages/wm/src/wm.rs
+++ b/packages/wm/src/wm.rs
@@ -55,13 +55,7 @@ impl WindowManager {
handle_display_settings_changed(state, config)
}
PlatformEvent::KeybindingTriggered(kb_config) => {
- // Skip keybinding if an ignored window currently has focus.
- if !state
- .ignored_windows
- .contains(&Platform::foreground_window())
- {
- self.process_commands(kb_config.commands, None, config)?;
- }
+ self.process_commands(kb_config.commands, None, config)?;
// Return early since we don't want to redraw twice.
return Ok(());