From d47bfe6af1d040f5c5feb607cf24ea0947a4c8e8 Mon Sep 17 00:00:00 2001 From: vaxerski Date: Mon, 15 Aug 2022 00:34:37 +0200 Subject: remove unused fixXWaylandWindowsOnWorkspace --- src/Compositor.cpp | 25 ------------------------- 1 file changed, 25 deletions(-) (limited to 'src/Compositor.cpp') diff --git a/src/Compositor.cpp b/src/Compositor.cpp index 6ddd7f90..f8ca7d91 100644 --- a/src/Compositor.cpp +++ b/src/Compositor.cpp @@ -848,31 +848,6 @@ CWindow* CCompositor::getFirstWindowOnWorkspace(const int& id) { return nullptr; } -void CCompositor::fixXWaylandWindowsOnWorkspace(const int& id) { - // not needed anymore - return; - - const auto ISVISIBLE = isWorkspaceVisible(id); - - const auto PWORKSPACE = g_pCompositor->getWorkspaceByID(id); - - if (!PWORKSPACE) - return; - - for (auto& w : m_vWindows) { - if (w->m_iWorkspaceID == id) { - - // moveXWaylandWindow only moves XWayland windows - // so there is no need to check here - // if the window is XWayland or not. - if (ISVISIBLE && (!PWORKSPACE->m_bHasFullscreenWindow || w->m_bIsFullscreen)) - g_pXWaylandManager->moveXWaylandWindow(w.get(), w->m_vRealPosition.vec()); - else - g_pXWaylandManager->moveXWaylandWindow(w.get(), Vector2D(42069,42069)); - } - } -} - bool CCompositor::doesSeatAcceptInput(wlr_surface* surface) { return !m_sSeat.exclusiveClient || (surface && m_sSeat.exclusiveClient == wl_resource_get_client(surface->resource)); } -- cgit v1.2.3