summaryrefslogtreecommitdiff
path: root/src/Compositor.cpp
diff options
context:
space:
mode:
authorVaxry <vaxry@vaxry.net>2023-12-17 20:00:18 +0000
committerVaxry <vaxry@vaxry.net>2023-12-17 20:00:18 +0000
commit9fd928e114d7f57ac03aa7430d9cba41843347de (patch)
treefe019aba7fa3b1f816d8306f8051ac4dc9448f67 /src/Compositor.cpp
parentbf7374011b17776137c6cadb016695ef05926c6c (diff)
internal: nuke CWindow::m_bMappedX11
it's useless. m_bIsMapped is the same.
Diffstat (limited to 'src/Compositor.cpp')
-rw-r--r--src/Compositor.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/Compositor.cpp b/src/Compositor.cpp
index 4f80100a..cbdfa288 100644
--- a/src/Compositor.cpp
+++ b/src/Compositor.cpp
@@ -1065,9 +1065,6 @@ bool CCompositor::windowValidMapped(CWindow* pWindow) {
if (!windowExists(pWindow))
return false;
- if (pWindow->m_bIsX11 && !pWindow->m_bMappedX11)
- return false;
-
if (!pWindow->m_bIsMapped)
return false;
@@ -1131,7 +1128,7 @@ SIMEPopup* CCompositor::vectorToIMEPopup(const Vector2D& pos, std::list<SIMEPopu
CWindow* CCompositor::getWindowFromSurface(wlr_surface* pSurface) {
for (auto& w : m_vWindows) {
- if (!w->m_bIsMapped || w->m_bFadingOut || !w->m_bMappedX11)
+ if (!w->m_bIsMapped || w->m_bFadingOut)
continue;
if (w->m_pWLSurface.wlr() == pSurface)
@@ -1374,7 +1371,7 @@ void CCompositor::changeWindowZOrder(CWindow* pWindow, bool top) {
toMove.emplace_front(pw);
for (auto& w : m_vWindows) {
- if (w->m_bIsMapped && w->m_bMappedX11 && !w->isHidden() && w->m_bIsX11 && w->X11TransientFor() == pw) {
+ if (w->m_bIsMapped && !w->isHidden() && w->m_bIsX11 && w->X11TransientFor() == pw) {
x11Stack(w.get(), top, x11Stack);
}
}
@@ -1729,7 +1726,7 @@ CWindow* CCompositor::getConstraintWindow(SMouse* pMouse) {
const auto PSURFACE = pMouse->currentConstraint->surface;
for (auto& w : m_vWindows) {
- if (w->isHidden() || !w->m_bMappedX11 || !w->m_bIsMapped || !w->m_pWLSurface.exists())
+ if (w->isHidden() || !w->m_bIsMapped || !w->m_pWLSurface.exists())
continue;
if (w->m_bIsX11) {