nitpicker: consider xray config in find_view

If a domain is configured as xray="no", we want to let the views of the
domain respond to input events like in flat mode, even if xray mode is
active. Normally, the input mask of views with an alpha channel is
disregarded in X-ray mode. However, for non-ray views, the input mask
should always be considered.
This commit is contained in:
Norman Feske 2014-09-10 17:27:38 +02:00
parent 3113aac2c0
commit 23c22f52b3

View File

@ -273,7 +273,7 @@ class View : public Same_buffer_list_elem,
return false; return false;
/* if view uses an alpha channel, check the input mask */ /* if view uses an alpha channel, check the input mask */
if (mode.flat() && session().uses_alpha()) if ((mode.flat() || _session.xray_no()) && session().uses_alpha())
return session().input_mask_at(p - view_rect.p1() + _buffer_off); return session().input_mask_at(p - view_rect.p1() + _buffer_off);
return true; return true;