diff options
author | Vaxry <[email protected]> | 2024-05-12 16:00:55 +0100 |
---|---|---|
committer | Vaxry <[email protected]> | 2024-05-12 16:01:01 +0100 |
commit | fd35b35000fa11ce540d944966ff17c71c31fd27 (patch) | |
tree | 2a04832a7c4b59752bab2a1dd50ad8c2fde0992e | |
parent | 2ccd45a84475fab46c6fecd2fe226d3173104743 (diff) | |
download | Hyprland-fd35b35000fa11ce540d944966ff17c71c31fd27.tar.gz Hyprland-fd35b35000fa11ce540d944966ff17c71c31fd27.zip |
keybinds: fix pass
reverts #5967
fixes #6022
-rw-r--r-- | src/managers/KeybindManager.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/managers/KeybindManager.cpp b/src/managers/KeybindManager.cpp index 146dd221..c5d7067d 100644 --- a/src/managers/KeybindManager.cpp +++ b/src/managers/KeybindManager.cpp @@ -1911,6 +1911,7 @@ void CKeybindManager::pass(std::string regexp) { const auto XWTOXW = PWINDOW->m_bIsX11 && g_pCompositor->m_pLastWindow.lock() && g_pCompositor->m_pLastWindow->m_bIsX11; const auto SL = Vector2D(g_pCompositor->m_sSeat.seat->pointer_state.sx, g_pCompositor->m_sSeat.seat->pointer_state.sy); uint32_t keycodes[32] = {0}; + const auto LASTSRF = g_pCompositor->m_pLastFocus; // pass all mf shit if (!XWTOXW) { @@ -1961,7 +1962,7 @@ void CKeybindManager::pass(std::string regexp) { } if (g_pKeybindManager->m_uLastCode != 0) - wlr_seat_keyboard_enter(g_pCompositor->m_sSeat.seat, PWINDOW->m_pWLSurface.wlr(), KEYBOARD->keycodes, KEYBOARD->num_keycodes, &KEYBOARD->modifiers); + wlr_seat_keyboard_enter(g_pCompositor->m_sSeat.seat, LASTSRF, KEYBOARD->keycodes, KEYBOARD->num_keycodes, &KEYBOARD->modifiers); else wlr_seat_pointer_enter(g_pCompositor->m_sSeat.seat, PWINDOW->m_pWLSurface.wlr(), SL.x, SL.y); } |