1Tk_GetUserInactiveTime(3) Tk Library Procedures Tk_GetUserInactiveTime(3)
2
3
4
5______________________________________________________________________________
6
8 Tk_GetUserInactiveTime, Tk_ResetUserInactiveTime - discover user inac‐
9 tivity time
10
12 #include <tk.h>
13
14 long
15 Tk_GetUserInactiveTime(display)
16
17 Tk_GetUserInactiveTime(display)
18
20 Display *display (in) The display on which the user inactivity
21 timer is to be queried or reset.
22_________________________________________________________________
23
24
26 Tk_GetUserInactiveTime returns the number of milliseconds that have
27 passed since the last user interaction (usually via keyboard or mouse)
28 with the respective display. On systems and displays that do not sup‐
29 port querying the user inactiviy time, -1 is returned. Tk_GetUserInac‐
30 tiveTime resets the user inactivity timer of the given display to zero.
31 On windowing systems that do not support multiple displays display can
32 be passed as NULL.
33
34
36 idle, inactive
37
38
39
40Tk 8.5 Tk_GetUserInactiveTime(3)