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
x | X coordinate in window |
y | Y coordinate in window |
rootX | return location for X coordinate |
rootY | return location for Y coordinate |