diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-08-05 17:07:01 +0200 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-08-05 17:07:01 +0200 |
| commit | e0ada97a24adbe939db90c388b0d38161047f216 (patch) | |
| tree | 592b55925e869ce3364e701267670ee37c0f3b43 /src/Compositor.cpp | |
| parent | 9a8a6317ff9dc7d97a0018d8d0b19cd033d2c47b (diff) | |
support zwp_input_method_v2 popups
Diffstat (limited to 'src/Compositor.cpp')
| -rw-r--r-- | src/Compositor.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/Compositor.cpp b/src/Compositor.cpp index 96be097a..1d1dda08 100644 --- a/src/Compositor.cpp +++ b/src/Compositor.cpp @@ -1529,3 +1529,15 @@ void CCompositor::warpCursorTo(const Vector2D& pos) { wlr_cursor_warp(m_sWLRCursor, m_sSeat.mouse->mouse, pos.x, pos.y); } +SLayerSurface* CCompositor::getLayerSurfaceFromWlr(wlr_layer_surface_v1* pLS) { + for (auto& m : m_vMonitors) { + for (auto& lsl : m->m_aLayerSurfaceLists) { + for (auto& ls : lsl) { + if (ls->layerSurface == pLS) + return ls.get(); + } + } + } + + return nullptr; +} |
