mirror of
https://github.com/hyprwm/Hyprland
synced 2024-12-23 03:09:48 +01:00
fix segfault with cyclenext null
This commit is contained in:
parent
e5ab9643be
commit
0e57651e2f
1 changed files with 1 additions and 1 deletions
|
@ -1257,7 +1257,7 @@ void CKeybindManager::circleNext(std::string arg) {
|
||||||
return;
|
return;
|
||||||
|
|
||||||
auto switchToWindow = [&](CWindow* PWINDOWTOCHANGETO) {
|
auto switchToWindow = [&](CWindow* PWINDOWTOCHANGETO) {
|
||||||
if (PWINDOWTOCHANGETO == g_pCompositor->m_pLastWindow)
|
if (PWINDOWTOCHANGETO == g_pCompositor->m_pLastWindow || !PWINDOWTOCHANGETO)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (g_pCompositor->m_pLastWindow->m_iWorkspaceID == PWINDOWTOCHANGETO->m_iWorkspaceID && g_pCompositor->m_pLastWindow->m_bIsFullscreen) {
|
if (g_pCompositor->m_pLastWindow->m_iWorkspaceID == PWINDOWTOCHANGETO->m_iWorkspaceID && g_pCompositor->m_pLastWindow->m_bIsFullscreen) {
|
||||||
|
|
Loading…
Reference in a new issue