Decouple application activation from onscreen_visibility.
authorGunnar Sletta <gunnar.sletta@nokia.com>
Mon, 11 Jun 2012 10:09:04 +0000 (12:09 +0200)
committerGunnar Sletta <gunnar.sletta@nokia.com>
Mon, 11 Jun 2012 10:26:39 +0000 (12:26 +0200)
The application will be made active when it has focus. This
is already handled in the qwaylandinputdevice.cpp's handling
of input which posts window activation to Qt and internally
Qt will send application activation when a window is in
fact active.

Change-Id: I5adb4c76830096bb362489b7de18ed188fbed05d
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
src/plugins/platforms/wayland/qwaylandextendedsurface.cpp

index 12124ed..8f47d06 100644 (file)
@@ -141,9 +141,6 @@ void QWaylandExtendedSurface::onscreen_visibility(void *data, wl_extended_surfac
     Q_UNUSED(extendedWindow);
     Q_UNUSED(wl_extended_surface);
 
-    QEvent evt(visible != 0 ? QEvent::ApplicationActivate : QEvent::ApplicationDeactivate);
-    QCoreApplication::sendEvent(QCoreApplication::instance(), &evt);
-
     // Do not send events when the state is not changing...
     if (visible == extendedWindow->m_window->isExposed())
         return;