diff options
author | McCabe Maxsted | 2009-10-07 04:34:54 -0700 |
---|---|---|
committer | McCabe Maxsted | 2009-10-07 04:39:18 -0700 |
commit | acfbefb54cc7c3ea78933a5f0e9118286b5211de (patch) | |
tree | 8260c310bf7e2570b422bd5b2ffe95308364b043 /linden/indra/newview | |
parent | Applied RLVa-1.0.3e_20091005_Imprudence-1.2.0-diff.patch by Kitty Barnett (diff) | |
download | meta-impy-acfbefb54cc7c3ea78933a5f0e9118286b5211de.zip meta-impy-acfbefb54cc7c3ea78933a5f0e9118286b5211de.tar.gz meta-impy-acfbefb54cc7c3ea78933a5f0e9118286b5211de.tar.bz2 meta-impy-acfbefb54cc7c3ea78933a5f0e9118286b5211de.tar.xz |
Fixed random mouseclicks on the edge of the window
Diffstat (limited to 'linden/indra/newview')
-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(); |