Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit 4834f8e

Browse files
committed
[[ Bug 21474 ]] Reset mouse stack after drag and drop
This patch resolves an issue where after a drag and drop operation the mouse stack was being cleared in `wmdragdrop`. This resulted in a seemingly unresponsive stack as mouse events are guarded by `MCmousestackptr`. As `wmdragdrop` is only called when a window recieves a drag drop event we can ensure the mouse stack is correct by finding the stack for the window and setting it to that.
1 parent 117740b commit 4834f8e

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

docs/notes/bugfix-21474.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Fix unresponsive stack after drag and drop

engine/src/dispatch.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1705,7 +1705,7 @@ MCDragAction MCDispatch::wmdragdrop(Window w)
17051705
dodrop(false);
17061706

17071707
// The drag operation has ended. Remove the drag board contents.
1708-
MCmousestackptr = nil;
1708+
MCmousestackptr = findstackd(w);
17091709
MCdragboard->Clear();
17101710
m_drag_target = false;
17111711

0 commit comments

Comments
 (0)