From 5cc4bf699cfe4d5915b8ea9f2a7c8449cdc7bd2f Mon Sep 17 00:00:00 2001 From: Vaxry Date: Sun, 24 Mar 2024 16:08:25 +0000 Subject: IME: Refactor and fixup popups --- src/Compositor.cpp | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'src/Compositor.cpp') diff --git a/src/Compositor.cpp b/src/Compositor.cpp index f8138825..9ae1adfb 100644 --- a/src/Compositor.cpp +++ b/src/Compositor.cpp @@ -1163,21 +1163,6 @@ wlr_surface* CCompositor::vectorToLayerSurface(const Vector2D& pos, std::vector< return nullptr; } -SIMEPopup* CCompositor::vectorToIMEPopup(const Vector2D& pos, std::list& popups) { - for (auto& popup : popups) { - auto surface = popup.pSurface->surface; - CBox box{ - popup.realX, - popup.realY, - surface->current.width, - surface->current.height, - }; - if (box.containsPoint(pos)) - return &popup; - } - return nullptr; -} - CWindow* CCompositor::getWindowFromSurface(wlr_surface* pSurface) { for (auto& w : m_vWindows) { if (!w->m_bIsMapped || w->m_bFadingOut) -- cgit v1.2.3