Screen.getMonitorAtPoint

int getMonitorAtPoint(int x, int y)

Returns the monitor number in which the point (x,y) is located.

Parameters

xthe x coordinate in the virtual screen.
ythe y coordinate in the virtual screen.

Returns

the monitor number in which the point (x,y) lies, or

a monitor close to (x,y) if the point is not in any monitor.

Deprecated

Use [gdk.display.Display.getMonitorAtPoint] instead