mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-26 06:45:59 +01:00
fix crash
This commit is contained in:
parent
c5a4c83f78
commit
f3c597bfb7
2 changed files with 1 additions and 2 deletions
|
@ -664,8 +664,6 @@ void CCompositor::focusWindow(CWindow* pWindow, wlr_surface* pSurface) {
|
|||
|
||||
focusSurface(PWINDOWSURFACE, pWindow);
|
||||
|
||||
m_pLastFocus = PWINDOWSURFACE;
|
||||
|
||||
g_pXWaylandManager->activateWindow(pWindow, true); // sets the m_pLastWindow
|
||||
|
||||
// do pointer focus too
|
||||
|
|
|
@ -54,6 +54,7 @@ void CHyprXWaylandManager::activateWindow(CWindow* pWindow, bool activate) {
|
|||
else
|
||||
wlr_xdg_toplevel_set_activated(pWindow->m_uSurface.xdg->toplevel, activate);
|
||||
|
||||
g_pCompositor->m_pLastFocus = getWindowSurface(pWindow);
|
||||
g_pCompositor->m_pLastWindow = pWindow;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue