Commit 741eb8cb authored by Andreas Holzammer's avatar Andreas Holzammer Committed by The Qt Project
Browse files

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: default avatarSean Harmer <sean.harmer@kdab.com>
parent 8f26a9aa
No related merge requests found
Showing with 9 additions and 0 deletions
...@@ -136,6 +136,15 @@ QQnxWindow::QQnxWindow(QWindow *window, screen_context_t context) ...@@ -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
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment