From 996f56458d9aa6121c55d17102ed93aa06c5df8a Mon Sep 17 00:00:00 2001 From: Gunnar Sletta Date: Mon, 11 Jun 2012 12:09:04 +0200 Subject: [PATCH] Decouple application activation from onscreen_visibility. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- src/plugins/platforms/wayland/qwaylandextendedsurface.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/plugins/platforms/wayland/qwaylandextendedsurface.cpp b/src/plugins/platforms/wayland/qwaylandextendedsurface.cpp index 12124ed..8f47d06 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; -- 2.7.4