QNX: Add support for WindowDoesNotAcceptFocus flag
Set SCREEN_PROPERTY_SENSITIVITY to SCREEN_SENSITIVITY_NO_FOCUS of the screen window when the Qt::WindowDoesNotAcceptFocus window flag is set. Change-Id: Iac0764a84186c382dcd3f4bdd31dd24ac15df768 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
This commit is contained in:
parent
8f26a9aa64
commit
741eb8cbb1
@ -136,6 +136,15 @@ QQnxWindow::QQnxWindow(QWindow *window, screen_context_t context)
|
|||||||
qFatal("QQnxWindow: failed to set window swap interval, errno=%d", errno);
|
qFatal("QQnxWindow: failed to set window swap interval, errno=%d", errno);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (window->flags() && Qt::WindowDoesNotAcceptFocus) {
|
||||||
|
errno = 0;
|
||||||
|
val = SCREEN_SENSITIVITY_NO_FOCUS;
|
||||||
|
result = screen_set_window_property_iv(m_window, SCREEN_PROPERTY_SENSITIVITY, &val);
|
||||||
|
if (result != 0) {
|
||||||
|
qFatal("QQnxWindow: failed to set window sensitivity, errno=%d", errno);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
setScreen(static_cast<QQnxScreen *>(window->screen()->handle()));
|
setScreen(static_cast<QQnxScreen *>(window->screen()->handle()));
|
||||||
|
|
||||||
// Add window to plugin's window mapper
|
// Add window to plugin's window mapper
|
||||||
|
Loading…
Reference in New Issue
Block a user