mirror of
https://github.com/hyprwm/Hyprland.git
synced 2024-12-20 06:01:50 +03:00
fix class crash with unmanaged x11
This commit is contained in:
parent
c474e8253a
commit
72c967aa89
@ -94,6 +94,9 @@ std::string CHyprXWaylandManager::getAppIDClass(CWindow* pWindow) {
|
|||||||
try {
|
try {
|
||||||
if (pWindow->m_bIsX11) {
|
if (pWindow->m_bIsX11) {
|
||||||
if (pWindow->m_uSurface.xwayland) {
|
if (pWindow->m_uSurface.xwayland) {
|
||||||
|
if (!pWindow->m_bMappedX11 || !pWindow->m_bIsMapped)
|
||||||
|
return "unmanaged X11";
|
||||||
|
|
||||||
return std::string(pWindow->m_uSurface.xwayland->_class);
|
return std::string(pWindow->m_uSurface.xwayland->_class);
|
||||||
}
|
}
|
||||||
} else if (pWindow->m_uSurface.xdg) {
|
} else if (pWindow->m_uSurface.xdg) {
|
||||||
|
Loading…
Reference in New Issue
Block a user