mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-30 03:45:59 +01:00
input: don't refocus on closed window
This commit is contained in:
parent
896a78aaa0
commit
b748b0734f
1 changed files with 2 additions and 2 deletions
|
@ -679,11 +679,11 @@ void Events::listener_unmapWindow(void* owner, void* data) {
|
||||||
|
|
||||||
if (PWINDOWCANDIDATE != g_pCompositor->m_pLastWindow) {
|
if (PWINDOWCANDIDATE != g_pCompositor->m_pLastWindow) {
|
||||||
if (!PWINDOWCANDIDATE)
|
if (!PWINDOWCANDIDATE)
|
||||||
g_pInputManager->refocus();
|
g_pInputManager->simulateMouseMovement();
|
||||||
else
|
else
|
||||||
g_pCompositor->focusWindow(PWINDOWCANDIDATE);
|
g_pCompositor->focusWindow(PWINDOWCANDIDATE);
|
||||||
} else {
|
} else {
|
||||||
g_pInputManager->refocus();
|
g_pInputManager->simulateMouseMovement();
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
Debug::log(LOG, "Unmapped was not focused, ignoring a refocus.");
|
Debug::log(LOG, "Unmapped was not focused, ignoring a refocus.");
|
||||||
|
|
Loading…
Reference in a new issue