Skip to content
This repository was archived by the owner on Apr 28, 2020. It is now read-only.

Blocks workspace switches while multitasking view toggle animation is active #4

Merged
merged 3 commits into from
Feb 15, 2016

Conversation

Manuel-Kehl
Copy link
Contributor

Fixes #3.

I have solved the problem described in #3 by simply blocking workspace switch commands as long as the multitasking view's toggle animation is running. As explained in the git comments, delaying the workspace switch instead of blocking it.

I personally prefer blocking, because I feel like a delay might feel "sluggish" to the user, but we could experiment. Maybe it's hardly recognizable.

Manuel Kehl added 3 commits February 8, 2016 03:04
I assume it is fine to change the type from ActivatableComponent to
DeepinMultitaskingView because from a semantic point of view
workspace_view is always going to be some sort of "multitasking view".

If abstraction is desired, I propose to create an interface for
different types of "multitasking view" plugins, which contains
is_toggling(). Alternatively it could be added to ActivatableComponent
in terms of an abstract function. However, this would require
WindowOverview to be updated as well which would currently be of no use.
Workspace switching is inactive as long as workspace_view is toggling.
This makes sure that the animation does not look broken.

Alternatively we could simply delay the call to switch_to_next_workspace
instead of completely blocking it (using either Timeout or by binding
a callback function to a "toggle finished" signal).
@sonald
Copy link
Contributor

sonald commented Feb 11, 2016

@fasheng Thanks for the patch, the fix's fine. Although I prefer quick responsiveness but blocking is absolutely ok at this situation.

@fasheng
Copy link
Contributor

fasheng commented Feb 15, 2016

Thanks very much. But looks the github2gerrit plugin still not works. I will download the PR and push to gerrit manually(we host repos in github as mirrors for https://cr.deepin.io), and close here then.

@deepin-gerrit deepin-gerrit merged commit d6fdbe8 into martyr-deepin:master Feb 15, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants