summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGunnar Sletta <gunnar.sletta@nokia.com>2012-06-11 12:09:04 +0200
committerGunnar Sletta <gunnar.sletta@nokia.com>2012-06-11 12:26:39 +0200
commit996f56458d9aa6121c55d17102ed93aa06c5df8a (patch)
tree4fa76c9a47f7c404aea67b9af2df923a6e43899b
parent2a5d11c18910c79972591187bb7d381528a119ac (diff)
Decouple application activation from onscreen_visibility.
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>
-rw-r--r--src/plugins/platforms/wayland/qwaylandextendedsurface.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/plugins/platforms/wayland/qwaylandextendedsurface.cpp b/src/plugins/platforms/wayland/qwaylandextendedsurface.cpp
index 12124ed7f..8f47d066f 100644
--- a/src/plugins/platforms/wayland/qwaylandextendedsurface.cpp
+++ b/src/plugins/platforms/wayland/qwaylandextendedsurface.cpp
@@ -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;