mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
get window.focus() working again. b=419338 r=hwaara sr=roc
This commit is contained in:
parent
0f1f2d3257
commit
024b65210e
@ -526,7 +526,9 @@ NS_IMETHODIMP nsCocoaWindow::Show(PRBool bState)
|
||||
{
|
||||
NS_OBJC_BEGIN_TRY_ABORT_BLOCK_NSRESULT;
|
||||
|
||||
if (!mSheetNeedsShow && bState == [mWindow isVisible])
|
||||
// We need to re-execute sometimes in order to bring already-visible
|
||||
// windows forward.
|
||||
if (!mSheetNeedsShow && !bState && ![mWindow isVisible])
|
||||
return NS_OK;
|
||||
|
||||
nsIWidget* parentWidget = mParent;
|
||||
|
Loading…
Reference in New Issue
Block a user