diff options
| author | vaxerski <vaxry@vaxry.net> | 2022-08-15 00:34:37 +0200 |
|---|---|---|
| committer | vaxerski <vaxry@vaxry.net> | 2022-08-15 00:34:39 +0200 |
| commit | d47bfe6af1d040f5c5feb607cf24ea0947a4c8e8 (patch) | |
| tree | 2b12a92a412b14a8c4e7cafe4d57c9be15c7331f /src/Compositor.cpp | |
| parent | c982312c0757d7577b7646296bc1d857b88d6b6b (diff) | |
remove unused fixXWaylandWindowsOnWorkspace
Diffstat (limited to 'src/Compositor.cpp')
| -rw-r--r-- | src/Compositor.cpp | 25 |
1 files changed, 0 insertions, 25 deletions
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)); } |
