Package: gdk

Function gdk-device-window-at-position

Lambda List

gdk-device-window-at-position (device)

Arguments

device -- a gdk-device pointer device to query info to

Return Value

window -- a gdk-window object
win-x -- an integer with the x coordinate of the device location, relative to the window origin, or nil
win-y -- an integer with the y coordinate of the device location, relative to the window origin, or nil

Details

Obtains the window underneath the device, returning the location of the device. Returns nil if the window tree under the device is not known to GDK (for example, belongs to another application).

As a slave device coordinates are those of its master pointer. This function may not be called on devices of type :slave, unless there is an ongoing grab on them. See the gdk-device-grab function.
 

See also

2021-12-13