~aacid/unity-2d/greek_chars_lens_activate

« back to all changes in this revision

Viewing changes to shell/app/shelldeclarativeview.cpp

  • Committer: Tarmac
  • Author(s): Albert Astals
  • Date: 2012-05-21 15:49:36 UTC
  • mfrom: (1099.1.2 hide_on_drag_out)
  • Revision ID: tarmac-20120521154936-ed0e85rroem813p5
[shell] Update m_monitoredAreaContainsMouse on drag leave. Fixes: https://bugs.launchpad.net/bugs/1002308. Approved by .

Show diffs side-by-side

added added

removed removed

Lines of Context:
205
205
    }
206
206
}
207
207
 
 
208
void ShellDeclarativeView::dragLeaveEvent(QDragLeaveEvent *event)
 
209
{
 
210
    Unity2DDeclarativeView::dragLeaveEvent(event);
 
211
 
 
212
    if (m_monitoredAreaContainsMouse) {
 
213
        m_monitoredAreaContainsMouse = false;
 
214
        Q_EMIT monitoredAreaContainsMouseChanged();
 
215
    }
 
216
}
 
217
 
208
218
/* When another window calls XGrabPointer we receive a LeaveNotify event
209
219
   but QT doesn't emit a corresponding leaveEvent. Therefore we have to intercept it
210
220
   ourselves from X11 and act accordingly.