Window.getRootCoords

void getRootCoords(int x, int y, out int rootX, out int rootY)

Obtains the position of a window position in root window coordinates. This is similar to gdk.window.Window.getOrigin but allows you to pass in any position in the window, not just the origin.

Parameters

xX coordinate in window
yY coordinate in window
rootXreturn location for X coordinate
rootYreturn location for Y coordinate