From cd4284f0569cb498eb4f7846bb58d1948dcd29f0 Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Sun, 7 Feb 2016 10:10:52 +0000 Subject: [PATCH] Fixed Windows drag'n'drop not showing insert position (STR #3209). git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11131 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- CHANGES | 4 +++- src/fl_dnd_win32.cxx | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index 7b6b18e89..1f8cd1aff 100644 --- a/CHANGES +++ b/CHANGES @@ -64,7 +64,7 @@ CHANGES IN FLTK 1.3.4 RELEASED: ??? ?? 2016 (lpr/lpq) when SystemV-style commands (lp/lpstat) are not available. - Drawing alpha-blended images under X11 is now accelerated with Xrender. - - The fonts used for the FL_COURIER font family was changed on the Mac OS X + - The font used for the FL_COURIER font family was changed on the Mac OS X platform from 'Courier New' to 'Courier' because it was too thin. - Text drawing on the Mac platform supports Unicode 'variation selectors' in the range [0xFE00-0xFE0F]. @@ -92,6 +92,8 @@ CHANGES IN FLTK 1.3.4 RELEASED: ??? ?? 2016 Bug fixes + - Fixed Windows drag'n'drop not showing insert position if the drop + target is inside the same window or process (STR #3209). - Fixed undefined reference building shared cairo library (STR #3276). - Fixed Fl_Browser if text argument to some methods is NULL (STR #3269). - Fixed missing image release in fluid (STR #2840). diff --git a/src/fl_dnd_win32.cxx b/src/fl_dnd_win32.cxx index 78ca9ccf7..b56561f28 100644 --- a/src/fl_dnd_win32.cxx +++ b/src/fl_dnd_win32.cxx @@ -134,6 +134,8 @@ public: } px = pt.x; py = pt.y; lastEffect = *pdwEffect; + // show insert position if dnd'ing in the same window/process (STR #3209) + Fl::flush(); return S_OK; } HRESULT STDMETHODCALLTYPE DragLeave() {