mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1045000, deminiaturize before making the window key to fix flickering window, r=smichaud
This commit is contained in:
parent
07a26b75d3
commit
f67b827576
@ -1790,6 +1790,10 @@ NS_IMETHODIMP nsCocoaWindow::SetFocus(bool aState)
|
||||
mPopupContentView->SetFocus(aState);
|
||||
}
|
||||
else if (aState && ([mWindow isVisible] || [mWindow isMiniaturized])) {
|
||||
if ([mWindow isMiniaturized]) {
|
||||
[mWindow deminiaturize:nil];
|
||||
}
|
||||
|
||||
[mWindow makeKeyAndOrderFront:nil];
|
||||
SendSetZLevelEvent();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user