Change-Id: Ic725856f88db475d808f0bfa661cf3f7a4dccc10
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
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;
+
extendedWindow->m_exposed = visible;
QWaylandWindow *w = extendedWindow->m_window;
QWindowSystemInterface::handleSynchronousExposeEvent(w->window(),