or if window does not intersect any monitors, a monitor, close to window.
Screen.getMonitorAtWindow
int getMonitorAtWindow(gdk.window.Window window)Returns the number of the monitor in which the largest area of the bounding rectangle of window resides.
Parameters
window | a #GdkWindow |
Returns
the monitor number in which most of window is located,
Deprecated
Use [gdk.display.Display.getMonitorAtWindow] instead