about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/windows.c13
1 files changed, 2 insertions, 11 deletions
diff --git a/src/windows.c b/src/windows.c
index f709231f..d8017e2b 100644
--- a/src/windows.c
+++ b/src/windows.c
@@ -208,21 +208,12 @@ ui_get_idle_time(void)
         unsigned long result = info->idle;
         XFree(info);
         return result;
-
-    // if we couldn't get a screensaverinfo, use profanity interaction idle time
-    // this may occur if compiled with libxss, but then run in a bare terminal
-    } else {
-        gdouble seconds_elapsed = g_timer_elapsed(ui_idle_time, NULL);
-        unsigned long ms_elapsed = seconds_elapsed * 1000.0;
-        return ms_elapsed;
     }
-
-// if not compiled with libxss, just use profanity interaction idle time
-#else
+// if no libxss or xss idle time failed, use profanity idle time
+#endif
     gdouble seconds_elapsed = g_timer_elapsed(ui_idle_time, NULL);
     unsigned long ms_elapsed = seconds_elapsed * 1000.0;
     return ms_elapsed;
-#endif
 }
 
 void
26dc5b5acef8f21712b21a14e5c6af3e02e712'>^
373f47c7 ^
a48b9fce ^
373f47c7 ^

7f98e013 ^
373f47c7 ^



d9f5a2bd ^
373f47c7 ^
6303e0e2 ^






7f98e013 ^
6303e0e2 ^

7f98e013 ^
6303e0e2 ^





1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59