Use TransitionBuilder for maximizing - #2890
Conversation
73f26d9 to
ba6c9c8
Compare
de8b38c to
318e76b
Compare
318e76b to
58e931f
Compare
|
@lenemter thanks for the info that's really useful!
I added back the offset calculation but since we have access to the window after its rects have been updated we can get the unmaximized geometry immediately from there and don't need window listener unmaximized geometry tracking. However I still kept the tracking since it will be needed anyways in #2789 I double checked with a 10 seconds animation time that both when maximizing and unmaximizing the actor and the snapshot match exactly. Regarding the screenshot just to be sure: It was meant to illustrate the offset or did the snapshot stay after the animation finished? |
|
@leolost2605 I wanted to illustrate the incorrect offset. Sorry for the confusion |
Ah great then this should be ready again :) |
lenemter
left a comment
There was a problem hiding this comment.
Code looks good and works as expected. Great cleanup!

Use TransitionBuilder for maximizing. While here do a bit of cleanup and drop some hacks. I checked how GNOME Shell handles the general flow and followed that a bit more:
error in size accoutingerrors.Fixes elementary/wingpanel#661
Fixes #2674