Skip to content

Commit 88df4ca

Browse files
authored
Merge pull request #1317 from FluXy/patch-10
Reset the click tracker on GUIContext::onWindowDetached()
2 parents 0b0eaa7 + 9a8094f commit 88df4ca

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cegui/src/GUIContext.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -426,6 +426,9 @@ void GUIContext::onWindowDetached(Window* window)
426426
d_oldCaptureWindow = nullptr;
427427

428428
releaseInputCapture(true, window);
429+
430+
if(d_clickTracker.firstWindow == window || d_clickTracker.lastWindow == window)
431+
resetClickTracker();
429432
}
430433

431434
//----------------------------------------------------------------------------//

0 commit comments

Comments
 (0)