Skip to content

Commit 39584fa

Browse files
committed
-Updated docs
-Turned off animations for charts. -Fixed issue where Tasker will not render proper metadata for commitments with "Everyday" frequency. -Fixed Xhook issues in macOS -Releasing 0.1.1 -TODO:Polish code -TODO:Start using temporary branches -TODO:Fix bugs(like chart rendering) that happen with "Everyday" commitments -TODO:Inspect workflows for deleting commitments -TODO:Post issue about keeping old versions of Tasker on macOS and accessibility issues that causes
1 parent f46a7c3 commit 39584fa

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

Tasker/XHook.h

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
#ifndef KEYBOARDLISTENER_H
22
#define KEYBOARDLISTENER_H
33
#include <Hook.h>
4+
45
#include <QtCore>
56
#include <memory>
67
#ifdef __TASKER_DEBUG__
78
#if defined(Q_OS_LINUX)
89
#define IOHOOK_SCRIPT_PATH "./XListenerHook"
910
#define WORKDIR "../libs/linux/iohook"
1011
#elif defined(Q_OS_OSX)
11-
#define IOHOOK_SCRIPT_PATH "./run_hook.sh"
12-
#define WORKDIR "./Contents/iohook"
12+
#define IOHOOK_SCRIPT_PATH "./XListenerHook"
13+
#define WORKDIR QCoreApplication::applicationDirPath() + "/../iohook"
1314
#elif defined(Q_OS_WIN)
1415
#define IOHOOK_SCRIPT_PATH "./run_hook.sh"
1516
#define WORKDIR "./Contents/iohook"
@@ -33,7 +34,7 @@
3334
namespace Engine {
3435
class XHook;
3536
enum class XHookMode;
36-
} // namespace Engine
37+
} // namespace Engine
3738

3839
enum class Engine::XHookMode { MOUSE, KEYBOARD, MOUSE_AND_KEYBOARD };
3940
/**
@@ -47,26 +48,26 @@ enum class Engine::XHookMode { MOUSE, KEYBOARD, MOUSE_AND_KEYBOARD };
4748
class Engine::XHook : public Hook {
4849
Q_OBJECT
4950

50-
public:
51+
public:
5152
XHook();
5253
XHook(Engine::XHookMode);
5354
int startXHook();
5455
Hook::HookState startHook() override;
5556

56-
public slots:
57+
public slots:
5758
virtual void start() override;
5859
virtual void end() override;
5960
virtual void pause() override;
6061
virtual void update() override;
6162
virtual void resetState() override;
6263

63-
private:
64+
private:
6465
QProcess xChildHook;
6566
QStringList xChildHookArguments;
6667
XHookMode XMode;
67-
signals:
68+
signals:
6869
void signalThread();
6970
};
7071

7172
void hook();
72-
#endif // KEYBOARDLISTENER_H
73+
#endif // KEYBOARDLISTENER_H

0 commit comments

Comments
 (0)