macOS: Respect window type when determining main window status

Fixes: QTBUG-84405
Pick-to: 5.15 5.12
Change-Id: I3fc6b15b07a81e7e7e417a5767c2853083c13516
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
This commit is contained in:
Tor Arne Vestbø 2020-06-05 12:50:43 +02:00
parent ad117c5444
commit 1cd7cbf617
1 changed files with 2 additions and 4 deletions

View File

@ -300,14 +300,12 @@ OSStatus CGSClearWindowTags(const CGSConnectionID, const CGSWindowID, int *, int
- (BOOL)canBecomeMainWindow
{
BOOL canBecomeMain = YES; // By default, windows can become the main window
// Windows with a transient parent (such as combobox popup windows)
// cannot become the main window:
if (!m_platformWindow || m_platformWindow->window()->transientParent())
canBecomeMain = NO;
return NO;
return canBecomeMain;
return [super canBecomeMainWindow];
}
- (BOOL)isOpaque