mirror of
https://github.com/genodelabs/genode.git
synced 2025-05-12 05:23:20 +00:00
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:
parent
1bef11accf
commit
0359ee6a76
@ -665,8 +665,8 @@ Genode::Affinity Sandbox::Child::filter_session_affinity(Affinity const &session
|
|||||||
/* subordinate session affinity to child affinity subspace */
|
/* subordinate session affinity to child affinity subspace */
|
||||||
Affinity::Location location(child_session
|
Affinity::Location location(child_session
|
||||||
.multiply_position(session_space)
|
.multiply_position(session_space)
|
||||||
.transpose(session_location.xpos() * child_space.width(),
|
.transpose(session_location.xpos() * child_location.width(),
|
||||||
session_location.ypos() * child_space.height()));
|
session_location.ypos() * child_location.height()));
|
||||||
|
|
||||||
return Affinity(space, location);
|
return Affinity(space, location);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user