Display.getWindowAtPointer

Warning gdk_display_get_window_at_pointer has been deprecated since version 3.0 and should not be used in newly-written code. Use gdk_device_get_window_at_position() instead. 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). Since 2.2

class Display
getWindowAtPointer
(
out int winX
,
out int winY
)

Parameters

winX int

return location for x coordinate of the pointer location relative to the window origin, or NULL. out[allow-none]

winY int

return location for y coordinate of the pointer location relative to the window origin, or NULL. out[allow-none]

Return Value

Type: Window

the window under the mouse pointer, or NULL. [transfer none]

Meta