wasm: Only raise top level windows upon activation
Change-Id: Ied0ccfdc7bdb41d008ea38a6ece1e5483c0eda25 Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
This commit is contained in:
parent
4913511d3b
commit
03bd62e7c7
@ -68,7 +68,9 @@ bool ClientArea::processPointer(const PointerEvent &event)
|
||||
switch (event.type) {
|
||||
case EventType::PointerDown:
|
||||
m_element.call<void>("setPointerCapture", event.pointerId);
|
||||
if ((m_window->window()->flags() & Qt::WindowDoesNotAcceptFocus) != Qt::WindowDoesNotAcceptFocus)
|
||||
if ((m_window->window()->flags() & Qt::WindowDoesNotAcceptFocus)
|
||||
!= Qt::WindowDoesNotAcceptFocus
|
||||
&& m_window->window()->isTopLevel())
|
||||
m_window->window()->requestActivate();
|
||||
break;
|
||||
case EventType::PointerUp:
|
||||
|
Loading…
x
Reference in New Issue
Block a user