diff options
| author | Vaxry <vaxry@vaxry.net> | 2024-03-24 16:08:25 +0000 |
|---|---|---|
| committer | Vaxry <vaxry@vaxry.net> | 2024-03-24 16:08:25 +0000 |
| commit | 5cc4bf699cfe4d5915b8ea9f2a7c8449cdc7bd2f (patch) | |
| tree | d524435ee7bafe19d1bfdb2d741bc0e2c7ae30ee /src/Compositor.cpp | |
| parent | acf15e5579a5d2bbbe4a13e87306445e31ea5e4f (diff) | |
IME: Refactor and fixup popups
Diffstat (limited to 'src/Compositor.cpp')
| -rw-r--r-- | src/Compositor.cpp | 15 |
1 files changed, 0 insertions, 15 deletions
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<SIMEPopup>& 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) |
