[vlc-commits] [Git][videolan/vlc][master] qt/dcomp: filter-out accepted drop event

Jean-Baptiste Kempf gitlab at videolan.org
Mon Jun 21 09:46:07 UTC 2021



Jean-Baptiste Kempf pushed to branch master at VideoLAN / VLC


Commits:
cc88eb05 by Prince Gupta at 2021-06-21T09:33:11+00:00
qt/dcomp: filter-out accepted drop event

fixes #25569

- - - - -


1 changed file:

- modules/gui/qt/maininterface/compositor_dcomp_uisurface.cpp


Changes:

=====================================
modules/gui/qt/maininterface/compositor_dcomp_uisurface.cpp
=====================================
@@ -662,7 +662,7 @@ bool CompositorDCompositionUISurface::eventFilter(QObject* object, QEvent* event
     case QEvent::DragLeave:
     case QEvent::DragResponse:
     case QEvent::Drop:
-        return QCoreApplication::sendEvent(m_uiWindow, event);
+        return QCoreApplication::sendEvent(m_uiWindow, event) || event->isAccepted();
 
     case QEvent::KeyPress:
     case QEvent::KeyRelease:



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/cc88eb05bcc6f0470bfcc07e146216332ebb38b7

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/cc88eb05bcc6f0470bfcc07e146216332ebb38b7
You're receiving this email because of your account on code.videolan.org.




More information about the vlc-commits mailing list