Repository navigation
Revert "Fix Autohide Location calculation bug (Issue #2413)" - #2524
Conversation
Clutter.Actor.get_transformed_position() accounts for animations etc... which means that it cannot be used to compute the "theoretical" global position of the dock, which indeed might be part of an animation at the moment that the method is called. This reverts commit 3e0c24f. Closes: ubuntu#2501
|
I think this is correct. The target box for intellihide should not simply slide offscreen, but should shrink to zero thickness. If it only slides offscreen then it's moving to a location where windows will never touch it and actually never trigger autohide. Remember this ClutterActorBox is defined as {x1, y1, x2, y2}, not {x, y, width, height} as the surrounding code might trick you into thinking.
Also, simply reverting a recent commit is safer than adding more complexity like #2519. |
Clutter.Actor.get_transformed_position()accounts for animations etc... which means that it cannot be used to compute the "theoretical" global position of the dock, which indeed might be part of an animation at the moment that the method is called.This reverts commit 3e0c24f.
Closes: #2501