From 051312fd213d62c154b781ee037b1aab50e005d2 Mon Sep 17 00:00:00 2001 From: Marius Vlad Date: Wed, 22 Jul 2020 17:24:58 +0300 Subject: [PATCH] shell: Use the activate_app request from agl-shell-desktop Signed-off-by: Marius Vlad --- homescreen/src/shell.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/homescreen/src/shell.cpp b/homescreen/src/shell.cpp index 1427b7c..bf68f96 100644 --- a/homescreen/src/shell.cpp +++ b/homescreen/src/shell.cpp @@ -36,16 +36,16 @@ getWlOutput(QPlatformNativeInterface *native, QScreen *screen) return static_cast(output); } -void Shell::activate_app(QWindow *win, const QString &app_id) +void +Shell::activate_app(QWindow *win, const QString &app_id) { - QPlatformNativeInterface *native = qApp->platformNativeInterface(); - QScreen *screen = win->screen(); + QPlatformNativeInterface *native = qApp->platformNativeInterface(); + QScreen *screen = win->screen(); - struct wl_output *output = getWlOutput(native, screen); + struct wl_output *output = getWlOutput(native, screen); - qDebug() << "++ activating app_id " << app_id.toStdString().c_str(); + qDebug() << "++ activating app_id " << app_id.toStdString().c_str(); - agl_shell_activate_app(this->shell.get(), - app_id.toStdString().c_str(), - output); + agl_shell_desktop_activate_app(this->shell_desktop.get(), + app_id.toStdString().c_str(), NULL, output); } -- 2.16.6