Skip to content

Commit

Permalink
Merge pull request #282 from williameveretteggplant/modal_linux_fix
Browse files Browse the repository at this point in the history
  • Loading branch information
gcasa authored Aug 9, 2024
2 parents 4f9889b + dd67057 commit ac56a0f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Source/NSApplication.m
Original file line number Diff line number Diff line change
Expand Up @@ -1677,7 +1677,7 @@ - (NSModalSession) beginModalSessionForWindow: (NSWindow*)theWindow
[theWindow center];
[theWindow setLevel: NSModalPanelWindowLevel];
}
[theWindow orderFrontRegardless];

if ([self isActive] == YES)
{
if ([theWindow canBecomeKeyWindow] == YES)
Expand All @@ -1689,6 +1689,7 @@ - (NSModalSession) beginModalSessionForWindow: (NSWindow*)theWindow
[theWindow makeMainWindow];
}
}
[theWindow orderFrontRegardless];

return theSession;
}
Expand Down

0 comments on commit ac56a0f

Please sign in to comment.