Display.getMonitorAtSurface

Gets the monitor in which the largest area of @surface resides.

Returns a monitor close to @surface if it is outside of all monitors.

class Display
getMonitorAtSurface

Parameters

surface Surface

a GdkSurface

Return Value

the monitor with the largest overlap with @surface

Meta