Hi Fragarach 87,
Thanks much for sharing.
Out of curiosity, I borrowed a monitor from my friend and did some trials and errors.
Came out with a sample code that allows you to open an application at last saved position:
Sample Code 438: How to open an application at last window position
This works on multiple monitors too. If you exit the application from the second monitor and go back in again, the application will be opened at the same position in the second monitor.
p.s. I tried GdkScreen::get_monitor_geometry() too. Yes, it doesn't work. In C, the second parameter (GdkRectangle) is a pointer. In PHP, apparently it's not a pointer, and it doesn't return a GdkRectangle. So I guess at this point in time, there's no way to get the screen size for each of the monitor.