summaryrefslogtreecommitdiff
path: root/src/privatescreen.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/privatescreen.h')
-rw-r--r--src/privatescreen.h10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/privatescreen.h b/src/privatescreen.h
index 237fe03..34890fb 100644
--- a/src/privatescreen.h
+++ b/src/privatescreen.h
@@ -34,6 +34,7 @@
#include <core/point.h>
#include <core/timer.h>
#include <core/plugin.h>
+#include <time.h>
#include <glibmm/main.h>
@@ -90,7 +91,7 @@ class CompTimeoutSource :
private:
- struct timeval mLastTimeout;
+ struct timespec mLastTimeout;
friend class CompTimer;
friend class PrivateScreen;
@@ -129,13 +130,6 @@ typedef struct _CompDelayedEdgeSettings
#define SCREEN_EDGE_BOTTOMRIGHT 7
#define SCREEN_EDGE_NUM 8
-#define TIMEVALDIFF(tv1, tv2) \
- ((tv1)->tv_sec == (tv2)->tv_sec || (tv1)->tv_usec >= (tv2)->tv_usec) ? \
- ((((tv1)->tv_sec - (tv2)->tv_sec) * 1000000) + \
- ((tv1)->tv_usec - (tv2)->tv_usec)) / 1000 : \
- ((((tv1)->tv_sec - 1 - (tv2)->tv_sec) * 1000000) + \
- (1000000 + (tv1)->tv_usec - (tv2)->tv_usec)) / 1000
-
struct CompScreenEdge {
Window id;
unsigned int count;