logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Tk_GetUserInactiveTime, Tk_ResetUserInactiveTime - discover user inactivity time

Arguments

       Display *display (in)          The display on which the user inactivity timer is to be queried or reset.
________________________________________________________________________________________________________________

Description

Tk_GetUserInactiveTime  returns  the  number  of  milliseconds  that  have  passed  since  the  last user
       interaction (usually via keyboard or mouse) with the respective display. On systems and displays that  do
       not  support querying the user inactivity time, -1 is returned.  Tk_ResetUserInactiveTime resets the user
       inactivity timer of the given display to zero.   On  windowing  systems  that  do  not  support  multiple
       displays display can be passed as NULL.

Keywords

       idle, inactive

Tk                                                     8.5                           Tk_GetUserInactiveTime(3tk)

Name

       Tk_GetUserInactiveTime, Tk_ResetUserInactiveTime - discover user inactivity time

Synopsis

#include<tk.h>

       long
       Tk_GetUserInactiveTime(display)

       Tk_ResetUserInactiveTime(display)

See Also