mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-26 09:05:59 +01:00
shortcutsInhibit: fix crash
This commit is contained in:
parent
72bce7efd5
commit
fe19754887
1 changed files with 1 additions and 1 deletions
|
@ -73,7 +73,7 @@ bool CKeyboardShortcutsInhibitProtocol::isInhibited() {
|
||||||
if (!g_pCompositor->m_pLastFocus)
|
if (!g_pCompositor->m_pLastFocus)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if (g_pCompositor->getWindowFromSurface(g_pCompositor->m_pLastFocus.lock())->m_sWindowData.noShortcutsInhibit.valueOrDefault())
|
if (const auto PWINDOW = g_pCompositor->getWindowFromSurface(g_pCompositor->m_pLastFocus.lock()); PWINDOW && PWINDOW->m_sWindowData.noShortcutsInhibit.valueOrDefault())
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
for (auto& in : m_vInhibitors) {
|
for (auto& in : m_vInhibitors) {
|
||||||
|
|
Loading…
Reference in a new issue