Method

GdkDisplayget_window_at_pointer

deprecated: 3.0 since: 2.2

Declaration [src]

GdkWindow*
gdk_display_get_window_at_pointer (
  GdkDisplay* display,
  gint* win_x,
  gint* win_y
)

Description [src]

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).

Available since: 2.2

Deprecated since: 3.0

Use gdk_device_get_window_at_position() instead.

Parameters

win_x

Type: gint*

Return location for x coordinate of the pointer location relative to the window origin, or NULL.

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

Type: gint*

Return location for y coordinate of the pointer location relative & to the window origin, or NULL.

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

Return value

Type: GdkWindow

The window under the mouse pointer, or NULL.

The returned data is owned by the instance.
The return value can be NULL.