Display.getWindowAtPointer

gdk.window.Window getWindowAtPointer(out int winX, out int winY)

Obtains the window underneath the mouse pointer, returning the location of the pointer in that window in win_x, win_y for screen. Returns null if the window under the mouse pointer is not known to GDK (for example, belongs to another application).

Parameters

winXreturn location for x coordinate of the pointer location relative to the window origin, or null
winYreturn location for y coordinate of the pointer location relative & to the window origin, or null

Returns

the window under the mouse

pointer, or null

Deprecated

Use [gdk.device.Device.getWindowAtPosition] instead.