зеркало из https://github.com/mozilla/gecko-dev.git
Bug 438789 - Roll up popups when the window's key state changes. r=josh
--HG-- extra : rebase_source : ec1d9eb82ffe38c3d53c4199435635f1498d52c7
This commit is contained in:
Родитель
bca0be338b
Коммит
8aa9585229
|
@ -1597,6 +1597,8 @@ nsCocoaWindow::UnifiedShading(void* aInfo, const CGFloat* aIn, CGFloat* aOut)
|
|||
{
|
||||
NS_OBJC_BEGIN_TRY_ABORT_BLOCK;
|
||||
|
||||
RollUpPopups();
|
||||
|
||||
NSWindow* window = [aNotification object];
|
||||
if ([window isSheet])
|
||||
[WindowDelegate paintMenubarForWindow:window];
|
||||
|
@ -1608,6 +1610,8 @@ nsCocoaWindow::UnifiedShading(void* aInfo, const CGFloat* aIn, CGFloat* aOut)
|
|||
{
|
||||
NS_OBJC_BEGIN_TRY_ABORT_BLOCK;
|
||||
|
||||
RollUpPopups();
|
||||
|
||||
// If a sheet just resigned key then we should paint the menu bar
|
||||
// for whatever window is now main.
|
||||
NSWindow* window = [aNotification object];
|
||||
|
|
Загрузка…
Ссылка в новой задаче