xwaylandmgr: don't read xwayland surface from unmapped xwayland

This commit is contained in:
Vaxry 2024-02-29 01:21:15 +00:00
parent b1c0f1cc01
commit 4bff762d97

View file

@ -100,7 +100,7 @@ void CHyprXWaylandManager::getGeometryForWindow(CWindow* pWindow, CBox* pbox) {
std::string CHyprXWaylandManager::getTitle(CWindow* pWindow) { std::string CHyprXWaylandManager::getTitle(CWindow* pWindow) {
try { try {
if (pWindow->m_bIsX11) { if (pWindow->m_bIsX11) {
if (!pWindow->m_bIsMapped && pWindow->m_iX11Type != 1) if (!pWindow->m_bIsMapped)
return ""; return "";
if (pWindow->m_uSurface.xwayland && pWindow->m_uSurface.xwayland->title) { if (pWindow->m_uSurface.xwayland && pWindow->m_uSurface.xwayland->title) {
@ -121,7 +121,7 @@ std::string CHyprXWaylandManager::getTitle(CWindow* pWindow) {
std::string CHyprXWaylandManager::getAppIDClass(CWindow* pWindow) { std::string CHyprXWaylandManager::getAppIDClass(CWindow* pWindow) {
try { try {
if (pWindow->m_bIsX11) { if (pWindow->m_bIsX11) {
if (!pWindow->m_bIsMapped && pWindow->m_iX11Type != 1) if (!pWindow->m_bIsMapped)
return ""; return "";
if (pWindow->m_uSurface.xwayland && pWindow->m_uSurface.xwayland->_class) { if (pWindow->m_uSurface.xwayland && pWindow->m_uSurface.xwayland->_class) {