~brandontschaefer/unity/lp.1157329-fix

« back to all changes in this revision

Viewing changes to launcher/SwitcherController.cpp

  • Committer: Tarmac
  • Author(s): Marco Trevisan (Treviño)
  • Date: 2013-03-14 20:28:48 UTC
  • mfrom: (3212.2.8 trash-open-timestamp)
  • Revision ID: tarmac-20130314202848-n6piu08tz94863rn
ApplicationLauncherIcon: On quicklist activate pass the timestamp to the lambda by value

Also, use the correct signature on quicklist activate callback. Fixes: https://bugs.launchpad.net/bugs/1155225.

Approved by PS Jenkins bot, Brandon Schaefer.

Show diffs side-by-side

added added

removed removed

Lines of Context:
426
426
    Selection selection = GetCurrentSelection();
427
427
    if (selection.application_)
428
428
    {
429
 
      Time timestamp = -1;
430
 
      selection.application_->Activate(ActionArg(ActionArg::SWITCHER, 0,
 
429
      Time timestamp = 0;
 
430
      selection.application_->Activate(ActionArg(ActionArg::Source::SWITCHER, 0,
431
431
                                                 timestamp, selection.window_));
432
432
    }
433
433
  }