diff options
| author | MightyPlaza <123664421+MightyPlaza@users.noreply.github.com> | 2024-07-24 12:10:36 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-24 14:10:36 +0200 |
| commit | 72bce7efd5b302412f13485af27985965ddf830f (patch) | |
| tree | d1236a7bfd80dc07d9f7bb49f48957c11b987463 /src/protocols/ShortcutsInhibit.cpp | |
| parent | 99088eaed806d9268967baf09bc09cdb987c5357 (diff) | |
keybinds: add bindp and noshortcutsinhibit (#7017)
Diffstat (limited to 'src/protocols/ShortcutsInhibit.cpp')
| -rw-r--r-- | src/protocols/ShortcutsInhibit.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/protocols/ShortcutsInhibit.cpp b/src/protocols/ShortcutsInhibit.cpp index 211a7a01..226fccb6 100644 --- a/src/protocols/ShortcutsInhibit.cpp +++ b/src/protocols/ShortcutsInhibit.cpp @@ -73,6 +73,9 @@ bool CKeyboardShortcutsInhibitProtocol::isInhibited() { if (!g_pCompositor->m_pLastFocus) return false; + if (g_pCompositor->getWindowFromSurface(g_pCompositor->m_pLastFocus.lock())->m_sWindowData.noShortcutsInhibit.valueOrDefault()) + return false; + for (auto& in : m_vInhibitors) { if (in->surface() != g_pCompositor->m_pLastFocus) continue; |
