summaryrefslogtreecommitdiff
path: root/src/Compositor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Compositor.cpp')
-rw-r--r--src/Compositor.cpp25
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));
}