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 Window

a #GdkWindow

Return Value

Type: MonitorG

the monitor with the largest overlap with @window

Meta

Since

3.22