diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-05-14 14:37:57 +0200 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-05-14 14:37:57 +0200 |
| commit | a1567feb3ded69ae7dd6f46bf7d1da82ee3a5ecc (patch) | |
| tree | faa1d80f166de90a0e10a0ffaa2f26728ad4fa05 /src/Compositor.cpp | |
| parent | 0273d21a77074a0fdeacdaecbb4255aef2883a51 (diff) | |
Added nofocus rule
Diffstat (limited to 'src/Compositor.cpp')
| -rw-r--r-- | src/Compositor.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Compositor.cpp b/src/Compositor.cpp index ee1a0a1c..50ce621a 100644 --- a/src/Compositor.cpp +++ b/src/Compositor.cpp @@ -402,6 +402,11 @@ void CCompositor::focusWindow(CWindow* pWindow, wlr_surface* pSurface) { return; } + if (pWindow->m_bNoFocus) { + Debug::log(LOG, "Ignoring focus to nofocus window!"); + return; + } + if (!pWindow || !windowValidMapped(pWindow)) { wlr_seat_keyboard_notify_clear_focus(m_sSeat.seat); return; |
