Function

Gdkdrag_find_window_for_screen

Declaration [src]

void
gdk_drag_find_window_for_screen (
  GdkDragContext* context,
  GdkWindow* drag_window,
  GdkScreen* screen,
  gint x_root,
  gint y_root,
  GdkWindow** dest_window,
  GdkDragProtocol* protocol
)

Description [src]

Finds the destination window and DND protocol to use at the given pointer position.

This function is called by the drag source to obtain the dest_window and protocol parameters for gdk_drag_motion().

Available since:2.2

Parameters

context GdkDragContext
 

A GdkDragContext.

 The data is owned by the caller of the function.
drag_window GdkWindow
 

A window which may be at the pointer position, but should be ignored, since it is put up by the drag source as an icon.

 The data is owned by the caller of the function.
screen GdkScreen
 

The screen where the destination window is sought.

 The data is owned by the caller of the function.
x_root gint
 

The x position of the pointer in root coordinates.

y_root gint
 

The y position of the pointer in root coordinates.

dest_window GdkWindow
 

Location to store the destination window in.

 The argument will be set by the function.
 The called function takes ownership of the data, and is responsible for freeing it.
protocol GdkDragProtocol
 

Location to store the DND protocol in.

 The argument will be set by the function.
 The called function takes ownership of the data, and is responsible for freeing it.