wasm: use requestActive instead of activate
Task-number: QTBUG-74868 Change-Id: Ibbbac1ece66c8978440a282bf6949a82fb64d216 Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
This commit is contained in:
parent
166889ddcb
commit
3f25bcd5b7
@ -568,11 +568,8 @@ void QWasmEventTranslator::processMouse(int eventType, const EmscriptenMouseEven
|
|||||||
switch (eventType) {
|
switch (eventType) {
|
||||||
case EMSCRIPTEN_EVENT_MOUSEDOWN:
|
case EMSCRIPTEN_EVENT_MOUSEDOWN:
|
||||||
{
|
{
|
||||||
if (window2) {
|
if (window2)
|
||||||
window2->raise();
|
|
||||||
if (!window2->isActive())
|
|
||||||
window2->requestActivate();
|
window2->requestActivate();
|
||||||
}
|
|
||||||
|
|
||||||
pressedButtons.setFlag(button);
|
pressedButtons.setFlag(button);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user