From 36e2713ba62d5fb472dff1225ce5c200b127d27d Mon Sep 17 00:00:00 2001 From: alcomposer Date: Fri, 16 Jun 2023 22:04:50 +0930 Subject: [PATCH] Force repaint for Juce Linux as well when dragging starts --- modules/juce_gui_basics/mouse/juce_DragAndDropContainer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/juce_gui_basics/mouse/juce_DragAndDropContainer.cpp b/modules/juce_gui_basics/mouse/juce_DragAndDropContainer.cpp index e4911ac1bc..95b8a42f23 100644 --- a/modules/juce_gui_basics/mouse/juce_DragAndDropContainer.cpp +++ b/modules/juce_gui_basics/mouse/juce_DragAndDropContainer.cpp @@ -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())