Function

GdkWindowat_pointer

deprecated: 3.0 

Declaration [src]

GdkWindow*
gdk_window_at_pointer (
  gint* win_x,
  gint* win_y
)

Description [src]

Obtains the window underneath the mouse pointer, returning the location of that window in win_x, win_y. Returns NULL if the window under the mouse pointer is not known to GDK (if the window belongs to another application and a GdkWindow hasn’t been created for it with gdk_window_foreign_new())

NOTE: For multihead-aware widgets or applications use gdk_display_get_window_at_pointer() instead.

Deprecated since: 3.0

Use gdk_device_get_window_at_position() instead.

Parameters

win_x

Type: gint*

Return location for origin of the window under the pointer.

The argument will be set by the function.
The argument can be NULL.
win_y

Type: gint*

Return location for origin of the window under the pointer.

The argument will be set by the function.
The argument can be NULL.

Return value

Type: GdkWindow

Window under the mouse pointer.

The data is owned by the called function.