Allegro 5 api
#include <allegro5/allegro.h> void al_get_new_window_position(int *x, int *y)
Get the position where new non-fullscreen displays created by the calling thread will be placed.
al_set_new_window_position(3alleg5)