Method

GdkDisplayget_monitor_at_window

Declaration [src]

GdkMonitor*
gdk_display_get_monitor_at_window (
  GdkDisplay* display,
  GdkWindow* window
)

Description [src]

Gets the monitor in which the largest area of window resides, or a monitor close to window if it is outside of all monitors.

Available since:3.22

Parameters

window GdkWindow
 

A GdkWindow.

 The data is owned by the caller of the function.

Return value

Returns: GdkMonitor
 

The monitor with the largest overlap with window.

 The data is owned by the instance.