Second "ghost" drag&drop event on linux

Bug #1008737 reported by Max Linke
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Mixxx
Fix Released
Low
Max Linke

Bug Description

Since rev.3223 I experience a "ghost" drag&drop event on linux

to reproduce this

1) drag-n-drop a track to a deck
2) move the mouse and notice that it's still dragging

This problem is caused by line 572 in wtracktableview.cpp

void WTrackTableView::mouseMoveEvent(QMouseEvent* pEvent) {
    // Needed for mouse-tracking to fire entered() events.
    WLibraryTableView::mouseMoveEvent(pEvent);
   ...
   this calls the method of QAbstractItemView

This line shouldn't cause problems. I have no idea why this bug exists on linux,
mac does not show this behavior. Can anyone confirm this for Windows?

Revision history for this message
Max Linke (max-linke) wrote :

Hm I've noticed that this does not occur for playlists/Auto-DJ

Revision history for this message
Max Linke (max-linke) wrote :

If we call QAstractItemView::mouseMoveEvent in the if statement at the beginning the error does not occur and we still fire the entered(...) signals.

I'm not completely sure why this fixes the issue. Another alternative would be to call setState(NoState) at the end of
mouseMoveEvent and by this reimplementing some Qt logic.

Revision history for this message
RJ Skerry-Ryan (rryan) wrote :

Nice job! thanks for tracking down a fix.

Changed in mixxx:
assignee: nobody → Max Linke (max-linke)
milestone: none → 1.11.0
importance: Undecided → Low
status: New → Fix Committed
RJ Skerry-Ryan (rryan)
Changed in mixxx:
status: Fix Committed → Fix Released
Revision history for this message
Swiftb0y (swiftb0y) wrote :

Mixxx now uses GitHub for bug tracking. This bug has been migrated to:
https://github.com/mixxxdj/mixxx/issues/6507

lock status: Metadata changes locked and limited to project staff
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.