From 83705d3c78d9242f378d7a5d9c4b3769b46056a2 Mon Sep 17 00:00:00 2001 From: Norman Feske Date: Wed, 10 Sep 2014 18:09:44 +0200 Subject: [PATCH] nitpicker: fix input-mask offset calculation The buffer offset was wrongly accounted for. The miscalculation went unnoticed until now because the buffer offset was apparently never used in combination with alpha-channels. --- 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 7af4ecf4c4..4e3ee30373 100644 --- a/repos/os/src/server/nitpicker/view.h +++ b/repos/os/src/server/nitpicker/view.h @@ -274,7 +274,7 @@ class View : public Same_buffer_list_elem, /* if view uses an alpha channel, check the input mask */ 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; }