Method

GdkScreenget_monitor_at_window

deprecated: 3.22 since: 2.2

Declaration [src]

gint
gdk_screen_get_monitor_at_window (
  GdkScreen* screen,
  GdkWindow* window
)

Description [src]

Returns the number of the monitor in which the largest area of the bounding rectangle of window resides.

Available since: 2.2

Deprecated since: 3.22

Use gdk_display_get_monitor_at_window() instead.

Parameters

window

Type: GdkWindow

A GdkWindow.

The data is owned by the caller of the method.

Return value

Type: gint

The monitor number in which most of window is located, or if window does not intersect any monitors, a monitor, close to window.