X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=homescreen%2Fsrc%2Fshell.cpp;h=b7583c172ccb4e4929be9f7d53dcbcb5aaf0e4fb;hb=refs%2Fchanges%2F07%2F28507%2F2;hp=1427b7ce3e1fd08820a9e3e3d7f1177c4d421970;hpb=eb227c1da7bdd2d81c5a95881d7eef18369ca96a;p=apps%2Fhomescreen.git diff --git a/homescreen/src/shell.cpp b/homescreen/src/shell.cpp index 1427b7c..b7583c1 100644 --- a/homescreen/src/shell.cpp +++ b/homescreen/src/shell.cpp @@ -1,5 +1,5 @@ /* - * Copyright © 2019 Collabora Ltd. + * Copyright © 2019, 2022 Collabora Ltd. * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the @@ -26,7 +26,8 @@ #include #include #include "shell.h" -#include +// defined by meson build file +#include QT_QPA_HEADER #include static struct wl_output * @@ -49,3 +50,11 @@ void Shell::activate_app(QWindow *win, const QString &app_id) app_id.toStdString().c_str(), output); } + +void Shell::set_activate_region(struct wl_output *output, int32_t x, int32_t y, + int32_t width, int32_t height) +{ +#ifdef AGL_SHELL_SET_ACTIVATE_REGION_SINCE_VERSION + agl_shell_set_activate_region(this->shell.get(), output, x, y, width, height); +#endif +}