From 23c22f52b30f0f674e3d242fcebb72c16ccfe460 Mon Sep 17 00:00:00 2001 From: Norman Feske Date: Wed, 10 Sep 2014 17:27:38 +0200 Subject: [PATCH] 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. --- repos/os/src/server/nitpicker/view.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repos/os/src/server/nitpicker/view.h b/repos/os/src/server/nitpicker/view.h index 469c4b2cee..7af4ecf4c4 100644 --- a/repos/os/src/server/nitpicker/view.h +++ b/repos/os/src/server/nitpicker/view.h @@ -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;