device position
Device.getSurfaceAtPosition
gdk.surface.Surface getSurfaceAtPosition(out double winX, out double winY)Obtains the surface underneath device, returning the location of the device in win_x and win_y.
Returns null if the surface tree under device is not known to GDK (for example, belongs to another application).
Parameters
winX | return location for the X coordinate of the device location relative to the surface origin |
winY | return location for the Y coordinate of the device location relative to the surface origin |
Returns
the [gdk.surface.Surface] under the