From 6168d9c8b0b6f08e6eb668ac4cdce3289c588435 Mon Sep 17 00:00:00 2001 From: Richard Tamin Date: Sun, 27 Sep 2020 17:39:52 -0400 Subject: Shortcut to windows - Fix override of existing shortcut --- src/ShortcutManager.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ShortcutManager.cc b/src/ShortcutManager.cc index 52e94af..0809220 100644 --- a/src/ShortcutManager.cc +++ b/src/ShortcutManager.cc @@ -17,7 +17,7 @@ unsigned int ShortcutManager::getLastPlaceHolderKey() void ShortcutManager::mapKeyToWindow(unsigned int key, FluxboxWindow* window) { - m_key_to_window_map.insert(std::make_pair(key, window)); + m_key_to_window_map[key] = window; } void ShortcutManager::removeWindow(FluxboxWindow* window) -- cgit v0.11.2