mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-18 21:27:56 +00:00
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:
parent
ec1316e1cb
commit
8d50d320e2
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user