Skip to content

Commit

Permalink
unset fullscreen in onWindowRemoved
Browse files Browse the repository at this point in the history
  • Loading branch information
vaxerski committed Dec 7, 2022
1 parent bf5844d commit e1d7a13
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 3 additions & 0 deletions src/layout/IHyprLayout.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ void IHyprLayout::onWindowCreated(CWindow* pWindow) {
}

void IHyprLayout::onWindowRemoved(CWindow* pWindow) {
if (pWindow->m_bIsFullscreen)
g_pCompositor->setWindowFullscreen(pWindow, false, FULLSCREEN_FULL);

if (pWindow->m_bIsFloating) {
onWindowRemovedFloating(pWindow);
} else {
Expand Down
3 changes: 1 addition & 2 deletions src/managers/KeybindManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -930,9 +930,8 @@ void CKeybindManager::moveActiveToWorkspace(std::string args) {
PWINDOW->m_vPosition = PWINDOW->m_vRealPosition.vec();
}

if (WASFULLSCREEN) {
if (WASFULLSCREEN)
g_pCompositor->setWindowFullscreen(PWINDOW, true, OLDWORKSPACE->m_efFullscreenMode);
}

if (!g_pCompositor->isWorkspaceSpecial(WORKSPACEID)) {
g_pKeybindManager->changeworkspace(args);
Expand Down

0 comments on commit e1d7a13

Please sign in to comment.