Windows QPA: Fix override cursor when modal window is present
Handle WM_SETCURSOR to apply override cursors to window that do not have mouse capture (as is done in Qt 4). Fixes: QTBUG-58590 Change-Id: I7ff6f799da1b8d4b4396c0a6137778a11a192617 Reviewed-by: Oliver Wolff <oliver.wolff@qt.io> Reviewed-by: Andre de la Rocha <andre.rocha@qt.io>
This commit is contained in:
parent
16cb578a8d
commit
2c31516a1e
@ -1099,6 +1099,12 @@ bool QWindowsContext::windowsProc(HWND hwnd, UINT message,
|
||||
return false;
|
||||
case QtWindows::ClipboardEvent:
|
||||
return false;
|
||||
case QtWindows::CursorEvent: // Sent to windows that do not have capture (see QTBUG-58590).
|
||||
if (QWindowsCursor::hasOverrideCursor()) {
|
||||
QWindowsCursor::enforceOverrideCursor();
|
||||
return true;
|
||||
}
|
||||
break;
|
||||
case QtWindows::UnknownEvent:
|
||||
return false;
|
||||
case QtWindows::AccessibleObjectFromWindowRequest:
|
||||
|
Loading…
x
Reference in New Issue
Block a user