diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-03-19 20:56:19 +0100 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-03-19 20:56:19 +0100 |
| commit | 1a298257c9d7d0e140e3af60f873a71a91dd05ed (patch) | |
| tree | 465631a4363bc957d4a0fa2a4b435787015ecba9 /src/Compositor.cpp | |
| parent | cf76b9060636c03e495fe522f7b4c251327adc98 (diff) | |
fix xwaylabnd too, stuff
Diffstat (limited to 'src/Compositor.cpp')
| -rw-r--r-- | src/Compositor.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/Compositor.cpp b/src/Compositor.cpp index de6b095c..559d4164 100644 --- a/src/Compositor.cpp +++ b/src/Compositor.cpp @@ -224,6 +224,16 @@ CWindow* CCompositor::windowFromCursor() { return nullptr; } +SMonitor* CCompositor::getMonitorFromOutput(wlr_output* out) { + for (auto& m : m_lMonitors) { + if (m.output == out) { + return &m; + } + } + + return nullptr; +} + void CCompositor::focusWindow(CWindow* pWindow) { if (!pWindow) { |
