Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed animation error after full rotate of all apps #169

Merged
merged 1 commit into from
Jun 5, 2022

Conversation

N7K5
Copy link
Contributor

@N7K5 N7K5 commented Jun 4, 2022

There were two bugs. one where the windows are not drawn exactly how they should after one full rotate of all apps.
and second is closing using f4 shows animation as if two apps are closed.

@N7K5
Copy link
Contributor Author

N7K5 commented Jun 4, 2022

See the before and after video for better understanding... befire all the windows were drawn one over another after a full rotation..

rec__-2022-06-05_04.21.24.mp4

.

@dsheeler
Copy link
Owner

dsheeler commented Jun 4, 2022

Awesome! The flip thing was something I was going to look into next. Thanks!

About the f4 bug: I don't know why it was calling the stuff you commented out, so I don't understand the implications. Do you get what's going on there?

@N7K5
Copy link
Contributor Author

N7K5 commented Jun 4, 2022

Well, Not that i exactly undersstand,

but, what I think happening is, there are some windows which doesnot closes directly when you press alt+f4 (like interactive python terminal, pressing alt+f4 shows an warning of you really want to close). so, the commented out block checks if the window is really closed after some timeout (100 ms) by calling _checkDestroyed, but that block of code for some reason calls _removeDestroyedWindow!!! which shows animation of removing the next window ( as this._windows[this._currentIndex] is now the next window after removing the current window)

@dsheeler
Copy link
Owner

dsheeler commented Jun 4, 2022

Gotcha. Could you remove the commented stuff and commit? Then I'll merge.

@dsheeler
Copy link
Owner

dsheeler commented Jun 5, 2022

I fiddled around with things and got the flip to order the windows properly (avoiding the jump to proper ordering at the end

simplescreenrecorder-2022-06-04_19.22.40.mp4

)

@N7K5
Copy link
Contributor Author

N7K5 commented Jun 5, 2022

Oh, it looks good... thanks.

@dsheeler
Copy link
Owner

dsheeler commented Jun 5, 2022

Ahh, there was a miscommunication: I meant for you to delete the commented lines not to uncomment them. Sorry for the confusion! The reason to delete instead of comment is that you don't want commented lines when you can safely remove the lines but still be able to reference the old code in git

Also, could you revert the z-ordering fix you added? The solution I have does something different.

@dsheeler dsheeler merged commit 93b9fac into dsheeler:master Jun 5, 2022
@dsheeler
Copy link
Owner

dsheeler commented Jun 5, 2022

THANKS!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants