diff options
author | trianta <[email protected]> | 2024-09-12 04:15:01 -0500 |
---|---|---|
committer | GitHub <[email protected]> | 2024-09-12 10:15:01 +0100 |
commit | 73b9756b8d7ee06fc1c9f072f2a41f2dd1aeb2c9 (patch) | |
tree | bf8fa25ae492511054c3e99e827a892e3f03bc3c | |
parent | 8b9e385943d1a9fd0f8c6070fa1eae507ae26145 (diff) | |
download | Hyprland-73b9756b8d7ee06fc1c9f072f2a41f2dd1aeb2c9.tar.gz Hyprland-73b9756b8d7ee06fc1c9f072f2a41f2dd1aeb2c9.zip |
xwayland: remove extra x11 deactivation (#7755)
-rw-r--r-- | src/managers/XWaylandManager.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/managers/XWaylandManager.cpp b/src/managers/XWaylandManager.cpp index 144343f8..fad7e451 100644 --- a/src/managers/XWaylandManager.cpp +++ b/src/managers/XWaylandManager.cpp @@ -46,11 +46,8 @@ void CHyprXWaylandManager::activateSurface(SP<CWLSurfaceResource> pSurface, bool PWINDOW->m_pXWaylandSurface->restackToTop(); } PWINDOW->m_pXWaylandSurface->activate(activate); - } else if (!PWINDOW->m_bIsX11 && PWINDOW->m_pXDGSurface) { + } else if (!PWINDOW->m_bIsX11 && PWINDOW->m_pXDGSurface) PWINDOW->m_pXDGSurface->toplevel->setActive(activate); - if (g_pCompositor->m_pLastFocus && g_pCompositor->m_pLastWindow && g_pCompositor->m_pLastWindow->m_bIsX11) - activateSurface(g_pCompositor->m_pLastFocus.lock(), false); - } } void CHyprXWaylandManager::activateWindow(PHLWINDOW pWindow, bool activate) { |