diff options
| author | Vaxry <vaxry@vaxry.net> | 2023-12-17 20:00:18 +0000 |
|---|---|---|
| committer | Vaxry <vaxry@vaxry.net> | 2023-12-17 20:00:18 +0000 |
| commit | 9fd928e114d7f57ac03aa7430d9cba41843347de (patch) | |
| tree | fe019aba7fa3b1f816d8306f8051ac4dc9448f67 /src/Window.cpp | |
| parent | bf7374011b17776137c6cadb016695ef05926c6c (diff) | |
internal: nuke CWindow::m_bMappedX11
it's useless. m_bIsMapped is the same.
Diffstat (limited to 'src/Window.cpp')
| -rw-r--r-- | src/Window.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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); |
