diff options
author | Jacek Antonelli | 2008-08-15 23:45:42 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:45:42 -0500 |
commit | ce28e056c20bf2723f565bbf464b87781ec248a2 (patch) | |
tree | ef7b0501c4de4b631a916305cbc2a5fdc125e52d /linden/indra/llui/llmodaldialog.cpp | |
parent | Second Life viewer sources 1.19.1.4b (diff) | |
download | meta-impy-ce28e056c20bf2723f565bbf464b87781ec248a2.zip meta-impy-ce28e056c20bf2723f565bbf464b87781ec248a2.tar.gz meta-impy-ce28e056c20bf2723f565bbf464b87781ec248a2.tar.bz2 meta-impy-ce28e056c20bf2723f565bbf464b87781ec248a2.tar.xz |
Second Life viewer sources 1.20.2
Diffstat (limited to '')
-rw-r--r-- | linden/indra/llui/llmodaldialog.cpp | 49 |
1 files changed, 22 insertions, 27 deletions
diff --git a/linden/indra/llui/llmodaldialog.cpp b/linden/indra/llui/llmodaldialog.cpp index 392c122..160495d 100644 --- a/linden/indra/llui/llmodaldialog.cpp +++ b/linden/indra/llui/llmodaldialog.cpp | |||
@@ -211,11 +211,9 @@ BOOL LLModalDialog::handleRightMouseDown(S32 x, S32 y, MASK mask) | |||
211 | } | 211 | } |
212 | 212 | ||
213 | 213 | ||
214 | BOOL LLModalDialog::handleKeyHere(KEY key, MASK mask, BOOL called_from_parent ) | 214 | BOOL LLModalDialog::handleKeyHere(KEY key, MASK mask ) |
215 | { | 215 | { |
216 | childrenHandleKey(key, mask); | 216 | LLFloater::handleKeyHere(key, mask ); |
217 | |||
218 | LLFloater::handleKeyHere(key, mask, called_from_parent ); | ||
219 | 217 | ||
220 | if (mModal) | 218 | if (mModal) |
221 | { | 219 | { |
@@ -246,33 +244,30 @@ void LLModalDialog::onClose(bool app_quitting) | |||
246 | // virtual | 244 | // virtual |
247 | void LLModalDialog::draw() | 245 | void LLModalDialog::draw() |
248 | { | 246 | { |
249 | if (getVisible()) | 247 | LLColor4 shadow_color = LLUI::sColorsGroup->getColor("ColorDropShadow"); |
250 | { | 248 | S32 shadow_lines = LLUI::sConfigGroup->getS32("DropShadowFloater"); |
251 | LLColor4 shadow_color = LLUI::sColorsGroup->getColor("ColorDropShadow"); | 249 | |
252 | S32 shadow_lines = LLUI::sConfigGroup->getS32("DropShadowFloater"); | 250 | gl_drop_shadow( 0, getRect().getHeight(), getRect().getWidth(), 0, |
251 | shadow_color, shadow_lines); | ||
253 | 252 | ||
254 | gl_drop_shadow( 0, getRect().getHeight(), getRect().getWidth(), 0, | 253 | LLFloater::draw(); |
255 | shadow_color, shadow_lines); | 254 | |
255 | if (mModal) | ||
256 | { | ||
257 | // If we've lost focus to a non-child, get it back ASAP. | ||
258 | if( gFocusMgr.getTopCtrl() != this ) | ||
259 | { | ||
260 | gFocusMgr.setTopCtrl( this ); | ||
261 | } | ||
256 | 262 | ||
257 | LLFloater::draw(); | 263 | if( !gFocusMgr.childHasKeyboardFocus( this ) ) |
264 | { | ||
265 | setFocus(TRUE); | ||
266 | } | ||
258 | 267 | ||
259 | if (mModal) | 268 | if( !gFocusMgr.childHasMouseCapture( this ) ) |
260 | { | 269 | { |
261 | // If we've lost focus to a non-child, get it back ASAP. | 270 | gFocusMgr.setMouseCapture( this ); |
262 | if( gFocusMgr.getTopCtrl() != this ) | ||
263 | { | ||
264 | gFocusMgr.setTopCtrl( this ); | ||
265 | } | ||
266 | |||
267 | if( !gFocusMgr.childHasKeyboardFocus( this ) ) | ||
268 | { | ||
269 | setFocus(TRUE); | ||
270 | } | ||
271 | |||
272 | if( !gFocusMgr.childHasMouseCapture( this ) ) | ||
273 | { | ||
274 | gFocusMgr.setMouseCapture( this ); | ||
275 | } | ||
276 | } | 271 | } |
277 | } | 272 | } |
278 | } | 273 | } |