1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Force repaint for Juce Linux as well when dragging starts

This commit is contained in:
alcomposer 2023-06-16 22:04:50 +09:30
parent 21aca5ba3e
commit 36e2713ba6

View file

@ -494,7 +494,7 @@ void DragAndDropContainer::startDragging (const var& sourceDescription,
dragImageComponent->sourceDetails.localPosition = sourceComponent->getLocalPoint (nullptr, lastMouseDown);
dragImageComponent->updateLocation (false, lastMouseDown);
#if JUCE_WINDOWS
#if JUCE_WINDOWS || JUCE_LINUX
// Under heavy load, the layered window's paint callback can often be lost by the OS,
// so forcing a repaint at least once makes sure that the window becomes visible..
if (auto* peer = dragImageComponent->getPeer())