nitpicker: drop superfluous abs motion events

This patch fixes focus-follows-mouse problem reported for Sculpt 24.10
when using no (operational) backdrop.

In the absence of a background, nitpicker wrongly delivered absolute
motion events to the most recently hovered client even after leaving the
client's area to a area occupied by no client. These motion events, in
turn, confused the internal consistency of the window managers
enter/leave tracking.

Fixes #5375
This commit is contained in:
Norman Feske 2024-11-04 16:42:13 +01:00 committed by Christian Helmuth
parent ec1316e1cb
commit 8d50d320e2

View File

@ -257,6 +257,8 @@ void User_state::_handle_input_event(Input::Event ev)
View_owner *receiver = _input_receiver;
if (_key_cnt == 0 && _hovered) {
if (ev.absolute_motion())
receiver = nullptr;
/*
* Unless the domain of the pointed session is configured to
* always receive hover events, we deliver motion events only