OSX: obey the Qt::WindowTransparentForInput flag
Ignoring the mouse means you don't get window enter/exit events for that window either. Task-number: QTBUG-30122 Change-Id: I979be9f72f7d225d7b960fc5db4c3956d2749982 Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
This commit is contained in:
parent
f8624b188b
commit
79e729e111
@ -418,6 +418,8 @@ void QCocoaWindow::setWindowFlags(Qt::WindowFlags flags)
|
||||
NSInteger level = this->windowLevel(flags);
|
||||
[m_nsWindow setStyleMask:styleMask];
|
||||
[m_nsWindow setLevel:level];
|
||||
[m_nsWindow setIgnoresMouseEvents:((flags & Qt::ToolTip) == Qt::ToolTip) ? YES : NO];
|
||||
// TODO deal with WindowTransparentForInput; setIgnoresMouseEvents is too extreme, you can't click the titlebar
|
||||
setWindowShadow(flags);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user