---
name: "SDL_RaiseWindow"
section: "3"
platform: "linux"
package: "libsdl3-doc"
version: "3.2.10+ds-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/SDL_RaiseWindow"
---

# SDL\_RaiseWindow(3)

Request that a window be raised above other windows and gain the input focus.

## NAME

SDL\_RaiseWindow - Request that a window be raised above other windows and gain the input focus.

## HEADER FILE

Defined in SDL3/SDL\_video.h

## SYNOPSIS

```
#include "SDL3/SDL.h"
```

**bool SDL\_RaiseWindow(SDL\_Window \*window);**

## DESCRIPTION

The result of this request is subject to desktop window manager policy, particularly if raising the requested window would result in stealing focus from another application. If the window is successfully raised and gains input focus, an

**SDL\_EVENT\_WINDOW\_FOCUS\_GAINED**\
  event will be emitted, and the window will have the

**SDL\_WINDOW\_INPUT\_FOCUS**\
  flag set.

## FUNCTION PARAMETERS

- *window*

  the window to raise.

## RETURN VALUE

Returns true on success or false on failure; call

**SDL\_GetError** () for more information.

## THREAD SAFETY

This function should only be called on the main thread.

## AVAILABILITY

This function is available since SDL 3.2.0.
