sandbox: fix position scaling in affinity filter

During position scaling use the location width/height which is the permitted
dimension within the child space, instead of using the whole possible
child space. (Fixup for "init: scale affinity location" Issue #1412)

Thanks to the report by Peter.
This commit is contained in:
Alexander Boettcher 2020-12-14 08:57:49 +01:00 committed by Christian Helmuth
parent 1bef11accf
commit 0359ee6a76

View File

@ -665,8 +665,8 @@ Genode::Affinity Sandbox::Child::filter_session_affinity(Affinity const &session
/* subordinate session affinity to child affinity subspace */
Affinity::Location location(child_session
.multiply_position(session_space)
.transpose(session_location.xpos() * child_space.width(),
session_location.ypos() * child_space.height()));
.transpose(session_location.xpos() * child_location.width(),
session_location.ypos() * child_location.height()));
return Affinity(space, location);
}