diff options
| author | vaxerski <vaxry@vaxry.net> | 2022-08-10 17:46:01 +0200 |
|---|---|---|
| committer | vaxerski <vaxry@vaxry.net> | 2022-08-10 17:46:01 +0200 |
| commit | 9eb750c00b576d6c1de0a80239c7085de504f72d (patch) | |
| tree | 4d82a4a9af5e2c7d80b150bb1580856bbb1df689 /src/Compositor.cpp | |
| parent | 03f2e4d42abcce59456e62484da530454dafdb40 (diff) | |
added misc:layers_hog_keyboard_focus
Diffstat (limited to 'src/Compositor.cpp')
| -rw-r--r-- | src/Compositor.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/Compositor.cpp b/src/Compositor.cpp index b6dd4d27..15e6fa1b 100644 --- a/src/Compositor.cpp +++ b/src/Compositor.cpp @@ -1573,4 +1573,17 @@ void CCompositor::closeWindow(CWindow* pWindow) { focusWindow(windowFromCursor()); } } +} + +SLayerSurface* CCompositor::getLayerSurfaceFromSurface(wlr_surface* pSurface) { + for (auto& m : m_vMonitors) { + for (auto& lsl : m->m_aLayerSurfaceLists) { + for (auto& ls : lsl) { + if (ls->layerSurface && ls->layerSurface->surface == pSurface) + return ls.get(); + } + } + } + + return nullptr; }
\ No newline at end of file |
