Method

GdkDisplayget_window_at_pointer

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 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.
 The instance takes ownership of the data, and is responsible for freeing it.
win_y 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.
 The instance takes ownership of the data, and is responsible for freeing it.

Return value

Returns: GdkWindow
 

The window under the mouse pointer, or NULL.

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