X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=homescreen%2Fsrc%2Fhomescreenhandler.cpp;fp=homescreen%2Fsrc%2Fhomescreenhandler.cpp;h=e7d6a393a6109479f72d8d1c762d00e27b1bdd3d;hb=4c7852e6ff7fde510f4f11c21bec817583397951;hp=e61f0de89e67401c511f1977bf564f257790ab57;hpb=7ff53ae1b58a16e7fb7603195e71c510dbec4ae8;p=apps%2Fhomescreen.git diff --git a/homescreen/src/homescreenhandler.cpp b/homescreen/src/homescreenhandler.cpp index e61f0de..e7d6a39 100644 --- a/homescreen/src/homescreenhandler.cpp +++ b/homescreen/src/homescreenhandler.cpp @@ -28,7 +28,6 @@ HomescreenHandler::HomescreenHandler(Shell *_aglShell, ApplicationLauncher *laun mp_launcher = launcher; mp_applauncher_client = new AppLauncherClient(); QPlatformNativeInterface *native = qApp->platformNativeInterface(); - m_output = getWlOutput(native, qApp->screens().first()); // // The "started" event is received any time a start request is made to applaunchd, @@ -93,13 +92,16 @@ void HomescreenHandler::addAppToStack(const QString& app_id) void HomescreenHandler::activateApp(const QString& app_id) { struct agl_shell *agl_shell = aglShell->shell.get(); + QPlatformNativeInterface *native = qApp->platformNativeInterface(); + struct wl_output *mm_output = getWlOutput(native, qApp->screens().first()); if (mp_launcher) { mp_launcher->setCurrent(app_id); } HMI_DEBUG("HomeScreen", "Activating application %s", app_id.toStdString().c_str()); - agl_shell_activate_app(agl_shell, app_id.toStdString().c_str(), m_output); + + agl_shell_activate_app(agl_shell, app_id.toStdString().c_str(), mm_output); } void HomescreenHandler::deactivateApp(const QString& app_id)