mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-19 05:37:54 +00:00
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:
parent
3113aac2c0
commit
23c22f52b3
@ -273,7 +273,7 @@ class View : public Same_buffer_list_elem,
|
||||
return false;
|
||||
|
||||
/* 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 true;
|
||||
|
Loading…
Reference in New Issue
Block a user