aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/managers/XWaylandManager.cpp
diff options
context:
space:
mode:
authorVaxry <[email protected]>2024-02-29 01:21:15 +0000
committerVaxry <[email protected]>2024-02-29 01:21:23 +0000
commit4bff762d9733ba7334cd37b995cf51552cc80be0 (patch)
treef56d5093f28a4e1b253818591f570d37b6cc754f /src/managers/XWaylandManager.cpp
parentb1c0f1cc018d13ac1e5ebccaade5528ec757bd74 (diff)
downloadHyprland-4bff762d9733ba7334cd37b995cf51552cc80be0.tar.gz
Hyprland-4bff762d9733ba7334cd37b995cf51552cc80be0.zip
xwaylandmgr: don't read xwayland surface from unmapped xwayland
Diffstat (limited to 'src/managers/XWaylandManager.cpp')
-rw-r--r--src/managers/XWaylandManager.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/managers/XWaylandManager.cpp b/src/managers/XWaylandManager.cpp
index a7e869cb..1704ee99 100644
--- a/src/managers/XWaylandManager.cpp
+++ b/src/managers/XWaylandManager.cpp
@@ -100,7 +100,7 @@ void CHyprXWaylandManager::getGeometryForWindow(CWindow* pWindow, CBox* pbox) {
std::string CHyprXWaylandManager::getTitle(CWindow* pWindow) {
try {
if (pWindow->m_bIsX11) {
- if (!pWindow->m_bIsMapped && pWindow->m_iX11Type != 1)
+ if (!pWindow->m_bIsMapped)
return "";
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) {
try {
if (pWindow->m_bIsX11) {
- if (!pWindow->m_bIsMapped && pWindow->m_iX11Type != 1)
+ if (!pWindow->m_bIsMapped)
return "";
if (pWindow->m_uSurface.xwayland && pWindow->m_uSurface.xwayland->_class) {