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:
Norman Feske 2014-09-30 19:05:35 +02:00
parent 2ef0b0796c
commit 46968c0015
1 changed files with 2 additions and 1 deletions

View File

@ -213,7 +213,8 @@ void User_state::handle_event(Input::Event ev)
* session. In xray mode, we deliver motion events only to the
* 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)
pointed_session->submit_input_event(ev);