Inactive(3)

Inactive3

Discover user inactivity time

Usage

#include <tk.h>

long
Tk_GetUserInactiveTime(display)

Tk_GetUserInactiveTime(display)

Arguments

The display on which the user inactivity timer is to be queried or reset.

Overview

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 inactiviy time, -1 is returned. Tk_GetUserInactiveTime 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

Releases

Unchanged in 106 releases since Mac OS X 10.6.

  1. 10.6–26.5

From tcl 152 in macOS 26.5. Parsed by carta from the page's man source.