mirror of
https://github.com/hyprwm/Hyprland
synced 2025-02-17 04:02:09 +01:00
clear kb focus on focusSurface null
This commit is contained in:
parent
11c88e2503
commit
5eaf93697a
1 changed files with 4 additions and 1 deletions
|
@ -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))
|
if (m_pLastFocus && ((m_sSeat.seat->keyboard_state.focused_surface && wlr_surface_is_xdg_surface(m_pLastFocus)) || !pSurface))
|
||||||
g_pXWaylandManager->activateSurface(m_pLastFocus, false);
|
g_pXWaylandManager->activateSurface(m_pLastFocus, false);
|
||||||
|
|
||||||
if (!pSurface)
|
if (!pSurface) {
|
||||||
|
wlr_seat_keyboard_clear_focus(m_sSeat.seat);
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
const auto KEYBOARD = wlr_seat_get_keyboard(m_sSeat.seat);
|
const auto KEYBOARD = wlr_seat_get_keyboard(m_sSeat.seat);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue