QNX: Handle Qt::WindowDoesNotAcceptFocus correctly.
Discovered while working on: Task-number: QTBUG-32385 Change-Id: Id1ff31ea6a367983676125810b4f49629233d374 Reviewed-by: Andreas Holzammer <andreas.holzammer@kdab.com> Reviewed-by: Frank Osterfeld <frank.osterfeld@kdab.com> Reviewed-by: Rafael Roquetto <rafael.roquetto@kdab.com>
This commit is contained in:
parent
12e97b5fb4
commit
183cc501d6
@ -135,7 +135,7 @@ QQnxWindow::QQnxWindow(QWindow *window, screen_context_t context)
|
||||
if (result != 0)
|
||||
qFatal("QQnxWindow: failed to set window swap interval, errno=%d", errno);
|
||||
|
||||
if (window->flags() && Qt::WindowDoesNotAcceptFocus) {
|
||||
if (window->flags() & Qt::WindowDoesNotAcceptFocus) {
|
||||
errno = 0;
|
||||
val = SCREEN_SENSITIVITY_NO_FOCUS;
|
||||
result = screen_set_window_property_iv(m_window, SCREEN_PROPERTY_SENSITIVITY, &val);
|
||||
|
Loading…
Reference in New Issue
Block a user