mirror of
https://github.com/genodelabs/genode.git
synced 2025-01-31 08:25:38 +00:00
nitpicker: motion events for non-xray clients
When X-ray mode is active, nitpicker filters motion events that are not referring to the currently focused domain. However, domains configured as xray="no" (such as a panel) need to obtain motion events regardless of the xray mode. This patch relaxes the motion-event filtering to accommodate such clients.
This commit is contained in:
parent
2ef0b0796c
commit
46968c0015
@ -213,7 +213,8 @@ void User_state::handle_event(Input::Event ev)
|
|||||||
* session. In xray mode, we deliver motion events only to the
|
* session. In xray mode, we deliver motion events only to the
|
||||||
* focused session.
|
* focused session.
|
||||||
*/
|
*/
|
||||||
if (flat() || (xray() && Mode::focused_session() == pointed_session))
|
if (flat() || (xray() && Mode::focused_session() == pointed_session)
|
||||||
|
|| (pointed_session && pointed_session->xray_no()))
|
||||||
if (pointed_session)
|
if (pointed_session)
|
||||||
pointed_session->submit_input_event(ev);
|
pointed_session->submit_input_event(ev);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user