diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-07-21 19:44:34 +0200 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-07-21 19:44:34 +0200 |
| commit | 19cd04c85f6c1cf8f4a88f6a1588ff676f1c9779 (patch) | |
| tree | 9198efcb483e0629f107865c13171d35db39a723 /src | |
| parent | a011c28227d3f2832ccf55ca2f6362b76700fe1b (diff) | |
shadow keybinds on drag events
Diffstat (limited to 'src')
| -rw-r--r-- | src/layout/IHyprLayout.cpp | 3 | ||||
| -rw-r--r-- | src/managers/KeybindManager.hpp | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/layout/IHyprLayout.cpp b/src/layout/IHyprLayout.cpp index f5d87068..3134e521 100644 --- a/src/layout/IHyprLayout.cpp +++ b/src/layout/IHyprLayout.cpp @@ -117,6 +117,9 @@ void IHyprLayout::onBeginDragWindow() { m_vLastDragXY = m_vBeginDragXY; g_pHyprRenderer->damageWindow(DRAGGINGWINDOW); + + // shadow to ignore any bound to MAIN_MOD + g_pKeybindManager->shadowKeybinds(); } void IHyprLayout::onEndDragWindow() { diff --git a/src/managers/KeybindManager.hpp b/src/managers/KeybindManager.hpp index 4fa314a9..c4a37330 100644 --- a/src/managers/KeybindManager.hpp +++ b/src/managers/KeybindManager.hpp @@ -31,6 +31,7 @@ public: void removeKeybind(uint32_t, const std::string&); uint32_t stringToModMask(std::string); void clearKeybinds(); + void shadowKeybinds(); std::unordered_map<std::string, std::function<void(std::string)>> m_mDispatchers; @@ -45,8 +46,6 @@ private: bool handleKeybinds(const uint32_t&, const std::string&, const xkb_keysym_t&, const int&, bool, uint32_t); - void shadowKeybinds(); - bool handleInternalKeybinds(xkb_keysym_t); bool handleVT(xkb_keysym_t); |
