GdkX11.X11Display.prototype.get_user_time

function get_user_time(): Number(guint32) {
    // Gjs wrapper for gdk_x11_display_get_user_time()
}
  

Returns the timestamp of the last user interaction on display. The timestamp is taken from events caused by user interaction such as key presses or pointer movements. See GdkX11.X11Window.prototype.set_user_time.

Since 2.8

Returns

the timestamp of the last user interaction