diff options
author | McCabe Maxsted | 2010-04-30 01:08:09 -0700 |
---|---|---|
committer | Jacek Antonelli | 2010-05-04 02:15:11 -0500 |
commit | 7eea80564f0f0bb00a09b6da3dacbcf83e68812a (patch) | |
tree | 19b3eb7e373b413c89797579515f3b06532463c9 /linden/indra/newview/llviewerwindow.cpp | |
parent | disable voice temporaryly where no caps avail (renables on parcel change) (diff) | |
download | meta-impy-7eea80564f0f0bb00a09b6da3dacbcf83e68812a.zip meta-impy-7eea80564f0f0bb00a09b6da3dacbcf83e68812a.tar.gz meta-impy-7eea80564f0f0bb00a09b6da3dacbcf83e68812a.tar.bz2 meta-impy-7eea80564f0f0bb00a09b6da3dacbcf83e68812a.tar.xz |
Applied patch for SNOW-384 by Ardy Lay: A tool_tip is obscuring our view when typing into the Chat Bar
Diffstat (limited to 'linden/indra/newview/llviewerwindow.cpp')
-rw-r--r-- | linden/indra/newview/llviewerwindow.cpp | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/linden/indra/newview/llviewerwindow.cpp b/linden/indra/newview/llviewerwindow.cpp index 36f1a70..340d7a3 100644 --- a/linden/indra/newview/llviewerwindow.cpp +++ b/linden/indra/newview/llviewerwindow.cpp | |||
@@ -2094,7 +2094,7 @@ void LLViewerWindow::draw() | |||
2094 | // Draw tooltips | 2094 | // Draw tooltips |
2095 | // Adjust their rectangle so they don't go off the top or bottom | 2095 | // Adjust their rectangle so they don't go off the top or bottom |
2096 | // of the screen. | 2096 | // of the screen. |
2097 | if( mToolTip && mToolTip->getVisible() ) | 2097 | if( mToolTip && mToolTip->getVisible() && !mToolTipBlocked ) |
2098 | { | 2098 | { |
2099 | glMatrixMode(GL_MODELVIEW); | 2099 | glMatrixMode(GL_MODELVIEW); |
2100 | LLUI::pushMatrix(); | 2100 | LLUI::pushMatrix(); |
@@ -2141,6 +2141,16 @@ void LLViewerWindow::draw() | |||
2141 | // Takes a single keydown event, usually when UI is visible | 2141 | // Takes a single keydown event, usually when UI is visible |
2142 | BOOL LLViewerWindow::handleKey(KEY key, MASK mask) | 2142 | BOOL LLViewerWindow::handleKey(KEY key, MASK mask) |
2143 | { | 2143 | { |
2144 | // Hide tooltips on keypress | ||
2145 | mToolTipBlocked = TRUE; // block until next time mouse is moved | ||
2146 | |||
2147 | // Also hide hover info on keypress | ||
2148 | if (gHoverView) | ||
2149 | { | ||
2150 | gHoverView->cancelHover(); | ||
2151 | gHoverView->setTyping(TRUE); | ||
2152 | } | ||
2153 | |||
2144 | if (gFocusMgr.getKeyboardFocus() | 2154 | if (gFocusMgr.getKeyboardFocus() |
2145 | && !(mask & (MASK_CONTROL | MASK_ALT)) | 2155 | && !(mask & (MASK_CONTROL | MASK_ALT)) |
2146 | && !gFocusMgr.getKeystrokesOnly()) | 2156 | && !gFocusMgr.getKeystrokesOnly()) |
@@ -2163,17 +2173,6 @@ BOOL LLViewerWindow::handleKey(KEY key, MASK mask) | |||
2163 | } | 2173 | } |
2164 | } | 2174 | } |
2165 | 2175 | ||
2166 | // Hide tooltips on keypress | ||
2167 | mToolTipBlocked = TRUE; // block until next time mouse is moved | ||
2168 | |||
2169 | // Also hide hover info on keypress | ||
2170 | if (gHoverView) | ||
2171 | { | ||
2172 | gHoverView->cancelHover(); | ||
2173 | |||
2174 | gHoverView->setTyping(TRUE); | ||
2175 | } | ||
2176 | |||
2177 | // Explicit hack for debug menu. | 2176 | // Explicit hack for debug menu. |
2178 | if ((mask == (MASK_SHIFT | MASK_CONTROL)) && | 2177 | if ((mask == (MASK_SHIFT | MASK_CONTROL)) && |
2179 | ('G' == key || 'g' == key)) | 2178 | ('G' == key || 'g' == key)) |