diff options
author | vaxerski <[email protected]> | 2022-06-06 15:03:06 +0200 |
---|---|---|
committer | vaxerski <[email protected]> | 2022-06-06 15:03:06 +0200 |
commit | 72c967aa895cd0d3ca0b3e06ed43394a94523843 (patch) | |
tree | e4a1a7e3113898b64404eeea9d7fabffb637caab | |
parent | c474e8253aed47ce61d173ad8bda07936a41b702 (diff) | |
download | Hyprland-72c967aa895cd0d3ca0b3e06ed43394a94523843.tar.gz Hyprland-72c967aa895cd0d3ca0b3e06ed43394a94523843.zip |
fix class crash with unmanaged x11
-rw-r--r-- | src/managers/XWaylandManager.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/managers/XWaylandManager.cpp b/src/managers/XWaylandManager.cpp index 1a2c329b..5ffbe36f 100644 --- a/src/managers/XWaylandManager.cpp +++ b/src/managers/XWaylandManager.cpp @@ -94,6 +94,9 @@ std::string CHyprXWaylandManager::getAppIDClass(CWindow* pWindow) { try { if (pWindow->m_bIsX11) { if (pWindow->m_uSurface.xwayland) { + if (!pWindow->m_bMappedX11 || !pWindow->m_bIsMapped) + return "unmanaged X11"; + return std::string(pWindow->m_uSurface.xwayland->_class); } } else if (pWindow->m_uSurface.xdg) { |