diff options
| author | Ikalco <73481042+ikalco@users.noreply.github.com> | 2024-07-30 16:33:56 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-30 23:33:56 +0200 |
| commit | 3b9b5346b830554aa7470ccf1202a7f3be72d1b4 (patch) | |
| tree | 6770e07783bc49414e92bd23e0041971a8b6a360 /src/managers/KeybindManager.cpp | |
| parent | 8ec3dc4c09c30aab7669f99ba6359be320023fa8 (diff) | |
protocols: Move globalshortcuts impl (#7102)
* move global shortcuts to hyprwayland-scanner
* remove wayland-scanner from deps
* fix the thing
Diffstat (limited to 'src/managers/KeybindManager.cpp')
| -rw-r--r-- | src/managers/KeybindManager.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/managers/KeybindManager.cpp b/src/managers/KeybindManager.cpp index 038f6401..2b99ce97 100644 --- a/src/managers/KeybindManager.cpp +++ b/src/managers/KeybindManager.cpp @@ -3,6 +3,7 @@ #include "../managers/SeatManager.hpp" #include "../protocols/LayerShell.hpp" #include "../protocols/ShortcutsInhibit.hpp" +#include "../protocols/GlobalShortcuts.hpp" #include "../render/decorations/CHyprGroupBarDecoration.hpp" #include "../devices/IKeyboard.hpp" #include "KeybindManager.hpp" @@ -2664,10 +2665,10 @@ void CKeybindManager::global(std::string args) { if (NAME.empty()) return; - if (!g_pProtocolManager->m_pGlobalShortcutsProtocolManager->globalShortcutExists(APPID, NAME)) + if (!PROTO::globalShortcuts->isTaken(APPID, NAME)) return; - g_pProtocolManager->m_pGlobalShortcutsProtocolManager->sendGlobalShortcutEvent(APPID, NAME, g_pKeybindManager->m_iPassPressed); + PROTO::globalShortcuts->sendGlobalShortcutEvent(APPID, NAME, g_pKeybindManager->m_iPassPressed); } void CKeybindManager::moveGroupWindow(std::string args) { |
