Skip to content
This repository has been archived by the owner on Jul 9, 2024. It is now read-only.

Commit

Permalink
fix:crash when leave ov from empty workspace in ov mode
Browse files Browse the repository at this point in the history
  • Loading branch information
DreamMaoMao committed Dec 28, 2023
1 parent d136cca commit ebc72d1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/dispatchers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,10 @@ void dispatch_leaveoverview(std::string arg)
//make all fullscrenn windwo restore it's status
if (n.ovbk_windowIsFullscreen)
{
if (!g_pCompositor->m_pLastWindow) {
continue;
}

if (n.pWindow != g_pCompositor->m_pLastWindow && n.pWindow->m_iWorkspaceID == g_pCompositor->m_pLastWindow->m_iWorkspaceID)
{
continue;
Expand Down

0 comments on commit ebc72d1

Please sign in to comment.