From 3a1fb992e58eaded2dc9f262c1834287c4dfc170 Mon Sep 17 00:00:00 2001 From: "reed@reedloden.com" Date: Mon, 24 Mar 2008 22:00:36 -0700 Subject: [PATCH] Bug 424809 - "nsCocoaWindow.mm causes build errors with GCC 4.2 on OS X" [p=darkweaver@gmail.com (Sean Fleming) r=hwaara sr=vlad a1.9b5=beltzner] --- widget/src/cocoa/nsCocoaWindow.mm | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/widget/src/cocoa/nsCocoaWindow.mm b/widget/src/cocoa/nsCocoaWindow.mm index 41b37fb7ca18..e8bb95f2c342 100644 --- a/widget/src/cocoa/nsCocoaWindow.mm +++ b/widget/src/cocoa/nsCocoaWindow.mm @@ -1768,6 +1768,7 @@ NS_IMETHODIMP nsCocoaWindow::EndSecureKeyboardInput() case NSLeftMouseDragged: case NSRightMouseDragged: case NSOtherMouseDragged: + { // Drop all mouse events if a modal window has appeared above us. // This helps make us behave as if the OS were running a "real" modal // event loop. @@ -1782,7 +1783,8 @@ NS_IMETHODIMP nsCocoaWindow::EndSecureKeyboardInput() } } break; - default: + } + default: break; } @@ -2316,6 +2318,7 @@ already_AddRefed GetFocusedElement() case NSLeftMouseDragged: case NSRightMouseDragged: case NSOtherMouseDragged: + { // Drop all mouse events if a modal window has appeared above us. // This helps make us behave as if the OS were running a "real" modal // event loop. @@ -2330,7 +2333,8 @@ already_AddRefed GetFocusedElement() } } break; - default: + } + default: break; }