mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-20 06:23:48 -07:00
move refocus on only unmap
This commit is contained in:
@@ -383,6 +383,10 @@ void Events::listener_unmapWindow(void* owner, void* data) {
|
||||
// refocus on a new window
|
||||
g_pInputManager->refocus();
|
||||
|
||||
if (!g_pCompositor->m_pLastWindow) {
|
||||
g_pCompositor->focusWindow(g_pCompositor->getFirstWindowOnWorkspace(PWORKSPACE->m_iID));
|
||||
}
|
||||
|
||||
Debug::log(LOG, "Destroying the SubSurface tree of unmapped window %x", PWINDOW);
|
||||
SubsurfaceTree::destroySurfaceTree(PWINDOW->m_pSurfaceTree);
|
||||
|
||||
|
Reference in New Issue
Block a user