Add a function to obtain the last user interaction time. (#163119, Elijah
2005-01-19 Matthias Clasen <mclasen@redhat.com> * gdk/gdk.symbols: * gdk/x11/gdkx.h: * gdk/x11/gdkdisplay-x11.c (gdk_x11_display_get_user_time): Add a function to obtain the last user interaction time. (#163119, Elijah Newren)
This commit is contained in:
committed by
Matthias Clasen
parent
fad37a600e
commit
56e0ee04fc
@ -1162,3 +1162,22 @@ gdk_display_store_clipboard (GdkDisplay *display,
|
||||
gdk_error_trap_pop ();
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* gdk_x11_display_get_user_time:
|
||||
* @display: a #GdkDisplay
|
||||
*
|
||||
* 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 gdk_x11_window_set_user_time().
|
||||
*
|
||||
* Returns: the timestamp of the last user interaction
|
||||
*
|
||||
* Since: 2.8
|
||||
*/
|
||||
guint32
|
||||
gdk_x11_display_get_user_time (GdkDisplay *display)
|
||||
{
|
||||
return GDK_DISPLAY_X11 (display)->user_time;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user