---
name: "SDL_HINT_MOUSE_FOCUS_CLICKTHROUGH"
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_HINT_MOUSE_FOCUS_CLICKTHROUGH"
---

# SDL\_HINT\_MOUSE\_FOCUS\_CLICKTHROUGH(3)

Allow mouse click events when clicking to focus an SDL window.

## NAME

SDL\_HINT\_MOUSE\_FOCUS\_CLICKTHROUGH - Allow mouse click events when clicking to focus an SDL window.

## HEADER FILE

Defined in SDL3/SDL\_hints.h

## SYNOPSIS

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

**#define SDL\_HINT\_MOUSE\_FOCUS\_CLICKTHROUGH** *SDL\_MOUSE\_FOCUS\_CLICKTHROUGH"*

## DESCRIPTION

The variable can be set to the following values:

• "0": Ignore mouse clicks that activate a window. (default)

• "1": Generate events for mouse clicks that activate a window.

This hint can be set anytime.

## AVAILABILITY

This hint is available since SDL 3.2.0.
