gdk: Add an arg check to gdk_device_get_timestamp

Pointed out by Emmanuele Bassi.
This commit is contained in:
Matthias Clasen 2021-03-26 11:09:50 -04:00
parent 7849590a82
commit 08f68cce40

View File

@ -1407,5 +1407,7 @@ gdk_device_set_timestamp (GdkDevice *device,
guint32
gdk_device_get_timestamp (GdkDevice *device)
{
g_return_val_if_fail (GDK_IS_DEVICE (device), GDK_CURRENT_TIME);
return device->timestamp;
}