mirror of
https://gitlab.winehq.org/wine/wine-staging.git
synced 2024-11-21 16:46:54 -08:00
36 lines
1.2 KiB
Diff
36 lines
1.2 KiB
Diff
From 37c7da9a71e327dfe86c0c550cabc50968abd04d Mon Sep 17 00:00:00 2001
|
|
From: Andrej Shadura <andrew@shadura.me>
|
|
Date: Fri, 1 Feb 2019 08:38:10 +1100
|
|
Subject: [PATCH] comctl32: Fixed rebar behaviour when there's capture and no
|
|
drag
|
|
|
|
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=14750
|
|
---
|
|
dlls/comctl32/rebar.c | 10 +++++++++-
|
|
1 file changed, 9 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/dlls/comctl32/rebar.c b/dlls/comctl32/rebar.c
|
|
index aaa1047..29fc854 100644
|
|
--- a/dlls/comctl32/rebar.c
|
|
+++ b/dlls/comctl32/rebar.c
|
|
@@ -3119,7 +3119,15 @@ REBAR_MouseMove (REBAR_INFO *infoPtr, LPARAM lParam)
|
|
int yPtMove = (infoPtr->dwStyle & CCS_VERT ? ptMove.x : ptMove.y);
|
|
|
|
if (GetCapture() != infoPtr->hwndSelf)
|
|
- ERR("We are dragging but haven't got capture?!?\n");
|
|
+ {
|
|
+ if (infoPtr->fStatus & BEGIN_DRAG_ISSUED)
|
|
+ {
|
|
+ REBAR_Notify_NMREBAR (infoPtr, infoPtr->iGrabbedBand, RBN_ENDDRAG);
|
|
+ infoPtr->fStatus &= ~BEGIN_DRAG_ISSUED;
|
|
+ }
|
|
+ infoPtr->iGrabbedBand = -1;
|
|
+ return 0;
|
|
+ }
|
|
|
|
band = REBAR_GetBand(infoPtr, infoPtr->iGrabbedBand);
|
|
|
|
--
|
|
1.9.1
|
|
|