---
name: "al_set_new_window_position"
section: "3alleg5"
platform: "linux"
package: "allegro5-doc"
version: "2:5.2.10.1+dfsg-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/al_set_new_window_position/3alleg5"
---

# al\_set\_new\_window\_position(3alleg5)

Allegro 5 API

## NAME

al\_set\_new\_window\_position - Allegro 5 API

## SYNOPSIS

-

  ```
  #include <allegro5/allegro.h>
  void al_set_new_window_position(int x, int y)
  ```

## DESCRIPTION

Sets where the top left pixel of the client area of newly created windows (non-fullscreen) will be on screen, for displays created by the calling thread. Negative values are allowed on some multihead systems.

To reset to the default behaviour, pass (INT\_MAX, INT\_MAX).

## SEE ALSO

al\_get\_new\_window\_position(3alleg5)
