mirror of
https://github.com/hyprwm/Hyprland
synced 2026-05-07 10:58:20 +02:00
Merge dd75dc5dad into 78b8ce229c
This commit is contained in:
commit
6ebb49a91e
1 changed files with 10 additions and 0 deletions
|
|
@ -176,6 +176,16 @@ void CInputManager::sendMotionEventsToFocused() {
|
|||
if (!Desktop::focusState()->surface() || isConstrained())
|
||||
return;
|
||||
|
||||
const auto POINTERSURF = g_pSeatManager->m_state.pointerFocus.lock();
|
||||
if (POINTERSURF) {
|
||||
const auto POINTERHLSURF = Desktop::View::CWLSurface::fromResource(POINTERSURF);
|
||||
|
||||
// Keep pointer focus on desktop components such as bars or popups that are
|
||||
// currently under the cursor. Keyboard focus changes should not steal it.
|
||||
if (POINTERHLSURF && (!POINTERHLSURF->view() || POINTERHLSURF->view()->type() != Desktop::View::VIEW_TYPE_WINDOW))
|
||||
return;
|
||||
}
|
||||
|
||||
const auto SURF = Desktop::focusState()->surface();
|
||||
|
||||
if (!SURF)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue