Do not show activity switcher during fast switches

Authored by thsurrel on May 22 2018, 3:29 PM.



When using the keyboard global shortcut to switch quickly between
two activities, it does not make sense to start showing the activity
switcher, as it does not have time to show completely and just
flickers on the left side.

This patch modifies the timing when the activity switcher is shown
and when the activity is actually switched. It makes switching
quickly between two activities snappier. If the user has to search
between more activities, the bottleneck will likely not be the
small delay before showing the activity switcher.

Diff Detail

R119 Plasma Desktop
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.
thsurrel created this revision.May 22 2018, 3:29 PM
Restricted Application added a project: Plasma. · View Herald TranscriptMay 22 2018, 3:29 PM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
thsurrel requested review of this revision.May 22 2018, 3:29 PM


This is the same as KWin does with Alt+Tab, can you check what timeout it uses so we can be consistent here?

thsurrel planned changes to this revision.May 23 2018, 9:40 AM

Good point.
I had a look, the timeout is set at 90ms by default. But it is configurable (DelayTime), should I try to read the kwin configuration value or can we just go with 90ms ?

thsurrel updated this revision to Diff 34774.May 24 2018, 7:22 AM

Update the timing to match what is used in KWin and Alt-Tab

ivan accepted this revision.May 26 2018, 8:39 AM

Looks ok to me.

This revision is now accepted and ready to land.May 26 2018, 8:39 AM
This revision was automatically updated to reflect the committed changes.