# sdl2-compat: internal hint SDL\_BORDERLESS\_WINDOWED\_STYLE

**URL:** <https://discourse.libsdl.org/t/sdl2-compat-internal-hint-sdl-borderless-windowed-style/42483>\
**Category:** SDL Commits\
**Created:** [February 7, 2023, 7:58pm UTC](https://discourse.libsdl.org/t/sdl2-compat-internal-hint-sdl-borderless-windowed-style/42483 "2023-02-07T19:58:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SDLPushPostBot](https://discourse.libsdl.org/user_avatar/discourse.libsdl.org/sdlpushpostbot/32/4370_2.png) [@SDLPushPostBot](https://discourse.libsdl.org/u/SDLPushPostBot)\
**Post date:** [February 7, 2023, 7:58pm UTC](https://discourse.libsdl.org/t/sdl2-compat-internal-hint-sdl-borderless-windowed-style/42483/1 "2023-02-07T19:58:02Z")

</div>

> <https://github.com/libsdl-org/sdl2-compat/commit/04362b4e5a1cc1741b589d8c9f7b92986a4a3eca>
>
> sdl2-compat should set this to "0"

```diff
From 04362b4e5a1cc1741b589d8c9f7b92986a4a3eca Mon Sep 17 00:00:00 2001
From: Sylvain <[EMAIL REDACTED]>
Date: Tue, 7 Feb 2023 20:56:55 +0100
Subject: [PATCH] internal hint SDL_BORDERLESS_WINDOWED_STYLE sdl2-compat
 should set this to "0"

---
 src/sdl2_compat.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/sdl2_compat.c b/src/sdl2_compat.c
index ab8a291..e45cb56 100644
--- a/src/sdl2_compat.c
+++ b/src/sdl2_compat.c
@@ -1070,6 +1070,7 @@ SDL2Compat_InitOnStartup(void)
 
     SDL3_SetHint("SDL_WINDOWS_DPI_SCALING", 0);
     SDL3_SetHint("SDL_WINDOWS_DPI_AWARENESS", "unaware");
+ SDL3_SetHint("SDL_BORDERLESS_WINDOWED_STYLE", "0");
 
     return okay;
 }

```
