Migrate from SDL2 to SDL3 by rom1v · Pull Request #6216 · Genymobile/scrcpy (original) (raw)

@rom1v mentioned this pull request

Jul 12, 2025

metayan

rom1v added a commit that referenced this pull request

Jul 16, 2025

@rom1v

@rom1v rom1v mentioned this pull request

Jul 17, 2025

@rom1v rom1v mentioned this pull request

Jul 17, 2025

@rom1v rom1v mentioned this pull request

Jul 20, 2025

@rom1v

@rom1v rom1v mentioned this pull request

Jan 8, 2026

@rom1v

@rom1v

This improves consistency and will simplify further refactors.

PR #6216 <#6216>

@rom1v

The SDL3 migration guide 1 says:

The following window operations are now considered to be asynchronous requests and should not be assumed to succeed unless a corresponding event has been received […]

Remove the boolean fields used to track the window state, as they were fundamentally inconsistent with SDL's internal state. Use SDL_GetWindowFlags() explicitly instead.

Refs #6216 comment <#6216 (comment)> PR #6216 <#6216>

@rom1v

@rom1v

@rom1v

The Ubuntu version used to build scrcpy does not provide an SDL3 package.

PR #6216 <#6216>

@rom1v

@dddddjent @rom1v

Use BT.709 color space for AVCOL_SPC_RGB.

Refs #1868 comment <#1868 (comment)>

Signed-off-by: Romain Vimont rom@rom1v.com

@rom1v rom1v mentioned this pull request

Jan 8, 2026

Jamilah-nabel pushed a commit to Jamilah-nabel/https-github.com-Genymobile-scrcpy that referenced this pull request

Jan 13, 2026

@rom1v

Jamilah-nabel pushed a commit to Jamilah-nabel/https-github.com-Genymobile-scrcpy that referenced this pull request

Jan 13, 2026

@rom1v

Jamilah-nabel pushed a commit to Jamilah-nabel/https-github.com-Genymobile-scrcpy that referenced this pull request

Jan 13, 2026

@rom1v

The SDL3 migration guide 1 says:

The following window operations are now considered to be asynchronous requests and should not be assumed to succeed unless a corresponding event has been received […]

Remove the boolean fields used to track the window state, as they were fundamentally inconsistent with SDL's internal state. Use SDL_GetWindowFlags() explicitly instead.

Refs #6216 comment <Genymobile/scrcpy#6216 (comment)> PR #6216 <Genymobile/scrcpy#6216>

Jamilah-nabel pushed a commit to Jamilah-nabel/https-github.com-Genymobile-scrcpy that referenced this pull request

Jan 13, 2026

@rom1v

Jamilah-nabel pushed a commit to Jamilah-nabel/https-github.com-Genymobile-scrcpy that referenced this pull request

Jan 13, 2026

@rom1v

Jamilah-nabel pushed a commit to Jamilah-nabel/https-github.com-Genymobile-scrcpy that referenced this pull request

Jan 13, 2026

@rom1v

Jamilah-nabel pushed a commit to Jamilah-nabel/https-github.com-Genymobile-scrcpy that referenced this pull request

Jan 13, 2026

@rom1v

This was referenced

Jan 28, 2026

@rom1v rom1v mentioned this pull request

Feb 26, 2026

@rom1v rom1v mentioned this pull request

Apr 30, 2026

rom1v added a commit that referenced this pull request

May 1, 2026

@rom1v

Setting the window position can be denied, as observed in logs from 1:

ERROR: Could not set window position: wayland cannot position non-popup windows

Also do not assume window size setting succeeds.

1 <#6772 (comment)>

Refs #6216 comment <#6216 (comment)> PR #6802 <#6802>

@rom1v rom1v mentioned this pull request

May 19, 2026

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters

[ Show hidden characters]({{ revealButtonHref }})