diff options
Diffstat (limited to 'linden/indra/newview/llviewerwindow.cpp')
-rw-r--r-- | linden/indra/newview/llviewerwindow.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/linden/indra/newview/llviewerwindow.cpp b/linden/indra/newview/llviewerwindow.cpp index 99bbb2a..df10b4f 100644 --- a/linden/indra/newview/llviewerwindow.cpp +++ b/linden/indra/newview/llviewerwindow.cpp | |||
@@ -596,7 +596,14 @@ BOOL LLViewerWindow::handleAnyMouseClick(LLWindow *window, LLCoordGL pos, MASK | |||
596 | } | 596 | } |
597 | 597 | ||
598 | // Make sure we get a coresponding mouseup event, even if the mouse leaves the window | 598 | // Make sure we get a coresponding mouseup event, even if the mouse leaves the window |
599 | mWindow->captureMouse(); | 599 | if (down) |
600 | { | ||
601 | mWindow->captureMouse(); | ||
602 | } | ||
603 | else | ||
604 | { | ||
605 | mWindow->releaseMouse(); | ||
606 | } | ||
600 | 607 | ||
601 | // Indicate mouse was active | 608 | // Indicate mouse was active |
602 | gMouseIdleTimer.reset(); | 609 | gMouseIdleTimer.reset(); |