fix layout refresh on config and keybinds doubling

This commit is contained in:
vaxerski 2022-03-19 21:48:24 +01:00
parent 7b7ce638f4
commit 2e5435fe91
3 changed files with 9 additions and 0 deletions

View file

@ -59,4 +59,8 @@ void CKeybindManager::spawn(std::string args) {
void CKeybindManager::killActive(std::string args) {
if (g_pCompositor->m_pLastFocus && g_pCompositor->windowValidMapped(g_pCompositor->m_pLastFocus))
g_pXWaylandManager->sendCloseWindow(g_pCompositor->m_pLastFocus);
}
void CKeybindManager::clearKeybinds() {
m_dKeybinds.clear();
}

View file

@ -16,6 +16,7 @@ public:
void handleKeybinds(const uint32_t&, const xkb_keysym_t&);
void addKeybind(SKeybind);
uint32_t stringToModMask(std::string);
void clearKeybinds();
private:
std::deque<SKeybind> m_dKeybinds;