---
name: "al_set_new_window_position"
section: "3"
platform: "linux"
package: "allegro"
version: "5.2.11.3-2"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/al_set_new_window_position"
---

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

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(3)](/al_get_new_window_position/3.md)
