~unity-team/unity/unity.fix-sc-icon-to-launcher-animation-981168

Viewing all changes in revision 2282.

  • Committer: Tarmac
  • Author(s): Marco Trevisan (Treviño), Brandon Schaefer, Tim Penhey
  • Date: 2012-04-16 11:19:06 UTC
  • mfrom: (1776.4.46 3v1n0-quick-alt+tab-fixes)
  • Revision ID: tarmac-20120416111906-i6zpg21y6rtk7n5z
Fix the behaviour of alt-tab and clicking on the launcher icon to just raise the most recently used window, not all for that app.


BamfLauncherIcon's activation related code has been updated to be more multimonitor aware (for free I've fixed also some bugs that caused the windows not to be put in spread mode in multi-monitor), and to support both the "Launcher only on Primary Monitor" and "Launcher on all monitors" options.

PluginAdapter's FocusWindowGroup method has been updated to optionally only unminimize / raise and activate only the top window. This code would have been more optimized using a reverse iterator to fetch the top_window, but not to change the whole logic and to allow to keep the previous behavior (that initially we wanted for "long alt+tab") without duplicating code, I've just hacked that.
Implemented also GetWindowMonitor to workaround the mismatch we had with the compiz' window->outputDevice() and the UScreen values that now we use in the whole unity.

Screencast of the fixed version: http://ubuntuone.com/7YaWciQnaZHfzr35asSz0N. Fixes: https://bugs.launchpad.net/bugs/861250, https://bugs.launchpad.net/bugs/959339, https://bugs.launchpad.net/bugs/981795. Approved by Thomi Richards, Tim Penhey.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: