Stop delivering messages when drop has occurred.

Task-number: QTBUG-27406

Change-Id: If14c108060ad6de70991658f0e0249eb544b87a0
Reviewed-by: Samuel Rødal <samuel.rodal@digia.com>
bb10
Gatis Paeglis 2012-10-01 13:53:10 +02:00 committed by The Qt Project
parent 5ba061a66e
commit e840b8b2e3
2 changed files with 7 additions and 1 deletions

View File

@ -484,6 +484,12 @@ void QXcbDrag::move(const QMouseEvent *me)
void QXcbDrag::drop(const QMouseEvent *event)
{
QBasicDrag::drop(event);
if (heartbeat != -1) {
killTimer(heartbeat);
heartbeat = -1;
}
if (!current_target)
return;

View File

@ -143,7 +143,7 @@ private:
xcb_window_t current_proxy_target;
QXcbScreen *current_screen;
// timer used when target wants "continuous" move messages (eg. scroll)
int heartbeat;
QVector<xcb_atom_t> drag_types;