summaryrefslogtreecommitdiffstats
path: root/homescreen/src/homescreenhandler.h
diff options
context:
space:
mode:
authorScott Murray <scott.murray@konsulko.com>2020-07-22 22:27:21 -0400
committerScott Murray <scott.murray@konsulko.com>2020-07-22 22:39:25 -0400
commita37400d73417dc02511813833b8f4d9b91e40a11 (patch)
treea5ee5964d970fba4c377bd4d697be91dc43d8133 /homescreen/src/homescreenhandler.h
parentbdcd052f995d46abeeeda3171759aabad7dd8a75 (diff)
The switch to the new compositor removed the callback to update the top panel button highlight since it was being driven by the Event_ScreenUpdated event from the old windowmanager. For now, work around this by driving the ApplicationLauncher's setCurrent method from the appropriate place in the HomescreenHandler object's tapShortcut method. If a generic mechanism for notifications on application expose becomes available via agl-shell-desktop, that should be used instead. Additionally, add an explicit call to setCurrent on initialization to highlight the top panel Launcher button, matching the actual initial UI state. Bug-AGL: SPEC-3510 Signed-off-by: Scott Murray <scott.murray@konsulko.com> Change-Id: Ied5dd8e78195d061585510e60a758559ca4f69b3
Diffstat (limited to 'homescreen/src/homescreenhandler.h')
-rw-r--r--homescreen/src/homescreenhandler.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/homescreen/src/homescreenhandler.h b/homescreen/src/homescreenhandler.h
index 3d939ce..790c4fd 100644
--- a/homescreen/src/homescreenhandler.h
+++ b/homescreen/src/homescreenhandler.h
@@ -20,6 +20,7 @@
#include <QObject>
#include <libhomescreen.hpp>
+#include "applicationlauncher.h"
#include "shell.h"
#include <string>
@@ -30,7 +31,7 @@ class HomescreenHandler : public QObject
{
Q_OBJECT
public:
- explicit HomescreenHandler(Shell *aglShell, QObject *parent = 0);
+ explicit HomescreenHandler(Shell *aglShell, ApplicationLauncher *launcher = 0, QObject *parent = 0);
~HomescreenHandler();
void init(int port, const char* token);
@@ -49,6 +50,7 @@ signals:
void showInformation(QString info);
private:
LibHomeScreen *mp_hs;
+ ApplicationLauncher *mp_launcher;
Shell *aglShell;
};