@ -17,12 +17,12 @@
See the COPYING file for more details.
*/
#include <QtCore/qsystemdetection.h>
#if defined(__APPLE__) && defined(__MACH__)
#include "src/platform/timer.h"
#include <IOKit/IOKitLib.h>
#include <CoreFoundation/CoreFoundation.h>
uint32_t Platform::getIdleTime()
{
// https://hg.pidgin.im/pidgin/main/file/13e4ae613a6a/pidgin/gtkidle.c
@ -12,11 +12,11 @@
#ifdef Q_OS_WIN32
#include <windows.h>
LASTINPUTINFO info = { 0, 0 };
@ -12,11 +12,12 @@
#if defined(Q_OS_UNIX) && !defined(__APPLE__) && !defined(__MACH__)
#include <QDebug>
#include <X11/extensions/scrnsaver.h>
uint32_t idleTime = 0;