Method

GdkDisplayget_monitor_at_window

since: 3.22

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

Type: GdkWindow

A GdkWindow.

The data is owned by the caller of the method.

Return value

Type: GdkMonitor

The monitor with the largest overlap with window.

The returned data is owned by the instance.