Added nofocus rule

This commit is contained in:
vaxerski
2022-05-14 14:37:57 +02:00
parent 0273d21a77
commit a1567feb3d
4 changed files with 13 additions and 1 deletions

View File

@@ -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;