Tk_GetUserInactiveTime(3)

🌸 NAME 🌸

okay so welcome to the Tk_GetUserInactiveTime(3) page from the Tk Library Procedures manual β€” it's literally the β€œhow long has the user been idle” page, and it's iconic ✨

  • Tk_GetUserInactiveTime, Tk_ResetUserInactiveTime β€” discover user inactivity time.

✨ SYNOPSIS ✨

the whole signature situation is giving:

#include <tk.h>

long
Tk_GetUserInactiveTime(display)

Tk_ResetUserInactiveTime(display)

πŸŽ€ ARGUMENTS πŸŽ€

  • Display *display (in) β€” the display whose user-inactivity timer you're querying or resetting. That's the whole parameter, bestie 🫢

πŸ’… DESCRIPTION πŸ’…

Tk_GetUserInactiveTime returns the number of milliseconds that have ticked by 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. That's the β€œnope, can't query this” fallback, fr fr.

Tk_ResetUserInactiveTime resets the user inactivity timer of the given display to zero. Periodt. On windowing systems that do not support multiple displays, display can be passed as NULL.

🏷️ KEYWORDS 🏷️

idle, inactive β€” that's the tag squad πŸ’–


tiny sign-off, bestie: this cutie is from Tk 8.5 and the Tk_GetUserInactiveTime(3) manual page β€” mwah πŸ’…βœ¨

πŸ“¦ where this page comes from