mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-02 14:26:00 +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);
|
focusSurface(PWINDOWSURFACE, pWindow);
|
||||||
|
|
||||||
m_pLastFocus = PWINDOWSURFACE;
|
|
||||||
|
|
||||||
g_pXWaylandManager->activateWindow(pWindow, true); // sets the m_pLastWindow
|
g_pXWaylandManager->activateWindow(pWindow, true); // sets the m_pLastWindow
|
||||||
|
|
||||||
// do pointer focus too
|
// do pointer focus too
|
||||||
|
|
|
@ -54,6 +54,7 @@ void CHyprXWaylandManager::activateWindow(CWindow* pWindow, bool activate) {
|
||||||
else
|
else
|
||||||
wlr_xdg_toplevel_set_activated(pWindow->m_uSurface.xdg->toplevel, activate);
|
wlr_xdg_toplevel_set_activated(pWindow->m_uSurface.xdg->toplevel, activate);
|
||||||
|
|
||||||
|
g_pCompositor->m_pLastFocus = getWindowSurface(pWindow);
|
||||||
g_pCompositor->m_pLastWindow = pWindow;
|
g_pCompositor->m_pLastWindow = pWindow;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue