Display.getMonitorAtWindow

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

class Display
getMonitorAtWindow

Parameters

window gdk.window.Window

a #GdkWindow

Return Value

Type: gdk.monitor.MonitorWrap

the monitor with the largest overlap with window