X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=launcher%2Fsrc%2Fshell-desktop.h;h=fbd053b80f1cced14d04979aeadd211c2434891e;hb=ac31fb66f46233ba55a414296107637a002b2abd;hp=a8f33268df3067e3de05a74b9cd47c1955169a26;hpb=259c66b9ebde64e857f36d8d1d7050bec2e8f41d;p=apps%2Flauncher.git diff --git a/launcher/src/shell-desktop.h b/launcher/src/shell-desktop.h index a8f3326..fbd053b 100644 --- a/launcher/src/shell-desktop.h +++ b/launcher/src/shell-desktop.h @@ -56,27 +56,34 @@ public: public slots: // calls out of qml into CPP void activate_app(QWindow *win, const QString &app_id, const QString &app_data); + void activate_app_by_screen(const QString &screen_name, + const QString &app_id, + const QString &app_data); void deactivate_app(const QString &app_id); void set_window_props(QWindow *win, const QString &app_id, - uint32_t props, int x, int y); + uint32_t props, int x, int y, int bx, int by, + int bwidth, int bheight); }; static void application_id_event(void *data, struct agl_shell_desktop *agl_shell_desktop, const char *app_id) { - Shell *aglShell = static_cast(data); - (void) agl_shell_desktop; + Shell *aglShell = static_cast(data); + (void) agl_shell_desktop; - qInfo() << "app_id: " << app_id; + qInfo() << "app_id: " << app_id; // this ain't necessary in case the default policy API will activate // applications by default (when they are started) but if that is not // the case we can use this event handler to activate the application - // as this event is sent when the application is created (when the - // app surface is created that is) - QString qstr_app_id = QString::fromUtf8(app_id, -1); - aglShell->activate_app(nullptr, qstr_app_id, nullptr); + // as this event is sent when the application is created (when the app + // surface is created that is); note this event is sent when launcher + // binds to the interface for each application present, besides being + // adevertised when the application surface is created; so the + // following will need some kind of filtering to avoid mass activation + //QString qstr_app_id = QString::fromUtf8(app_id, -1); + //aglShell->activate_app(nullptr, qstr_app_id, nullptr); } static void