clear kb focus on focusSurface null

This commit is contained in:
vaxerski 2022-07-11 12:29:50 +02:00
parent 11c88e2503
commit 5eaf93697a

View file

@ -612,8 +612,11 @@ void CCompositor::focusSurface(wlr_surface* pSurface, CWindow* pWindowOwner) {
if (m_pLastFocus && ((m_sSeat.seat->keyboard_state.focused_surface && wlr_surface_is_xdg_surface(m_pLastFocus)) || !pSurface))
g_pXWaylandManager->activateSurface(m_pLastFocus, false);
if (!pSurface)
if (!pSurface) {
wlr_seat_keyboard_clear_focus(m_sSeat.seat);
return;
}
const auto KEYBOARD = wlr_seat_get_keyboard(m_sSeat.seat);