~ci-train-bot/mir/mir-ubuntu-zesty-2649

« back to all changes in this revision

Viewing changes to tests/acceptance-tests/drag_and_drop.cpp

  • Committer: Tarmac
  • Author(s): Alan Griffiths
  • Date: 2017-03-30 06:57:53 UTC
  • mfrom: (4106.7.10 mir2)
  • Revision ID: tarmac-20170330065753-ljp5spf8ce5iphyr
Client side and initial tests for a client initiating a user move gesture. Fixes: https://bugs.launchpad.net/bugs/1420334, https://bugs.launchpad.net/bugs/1669524.

Approved by mir-ci-bot, Chris Halse Rogers, Andreas Pokorny.

Show diffs side-by-side

added added

removed removed

Lines of Context:
213
213
 
214
214
void DragAndDrop::reset_window_event_handler(MirWindow* window)
215
215
{
 
216
    std::lock_guard<decltype(window_event_handler_mutex)> lock{window_event_handler_mutex};
216
217
    if (window == this->window) window_event_handler_ = [](MirEvent const*) {};
217
218
    if (window == target_window) target_window_event_handler_ = [](MirEvent const*) {};
218
219
}