From 9fd928e114d7f57ac03aa7430d9cba41843347de Mon Sep 17 00:00:00 2001 From: Vaxry Date: Sun, 17 Dec 2023 20:00:18 +0000 Subject: internal: nuke CWindow::m_bMappedX11 it's useless. m_bIsMapped is the same. --- src/Window.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Window.cpp') diff --git a/src/Window.cpp b/src/Window.cpp index bd51f2ff..da0912ee 100644 --- a/src/Window.cpp +++ b/src/Window.cpp @@ -231,7 +231,7 @@ pid_t CWindow::getPID() { wl_client_get_credentials(wl_resource_get_client(m_uSurface.xdg->resource), &PID, nullptr, nullptr); } else { - if (!m_bIsMapped || !m_bMappedX11) + if (!m_bIsMapped) return -1; PID = m_uSurface.xwayland->pid; @@ -322,7 +322,7 @@ void sendLeaveIter(wlr_surface* pSurface, int x, int y, void* data) { } void CWindow::updateSurfaceOutputs() { - if (m_iLastSurfaceMonitorID == m_iMonitorID || !m_bIsMapped || m_bHidden || !m_bMappedX11) + if (m_iLastSurfaceMonitorID == m_iMonitorID || !m_bIsMapped || m_bHidden) return; const auto PLASTMONITOR = g_pCompositor->getMonitorFromID(m_iLastSurfaceMonitorID); -- cgit v1.2.3