focus


Description:

public void focus (uint32 timestamp)

Sets keyboard focus to surface.

In most cases, [present_with_time]( ../gtk4/method.Window.present_with_time.html) should be used on a [GtkWindow](../gtk4/class.Window.html), rather than calling this function.

Parameters:

this

a `GdkToplevel`

timestamp

timestamp of the event triggering the surface focus