X Tutup
Skip to content

LinuxBSD: Fixes a formatting error when running Godot editor with Wayland prefer enabled.#113302

Merged
akien-mga merged 1 commit intogodotengine:masterfrom
LanzaSchneider:fix-wayland-logging-invalid-format
Dec 1, 2025
Merged

LinuxBSD: Fixes a formatting error when running Godot editor with Wayland prefer enabled.#113302
akien-mga merged 1 commit intogodotengine:masterfrom
LanzaSchneider:fix-wayland-logging-invalid-format

Conversation

@LanzaSchneider
Copy link
Contributor

In WaylandThread::window_set_borderless, the verbose logging used %d to format a boolean value, causing vformat to error as it doesn't support bool type. This changes the specifier to %s to let Variant handle the conversion properly.

Before:
屏幕截图_20251129_100619

After:
屏幕截图_20251129_101850

Tested with libdecor enabled on Linux/Wayland, warning is gone and output displays correctly.

@LanzaSchneider LanzaSchneider requested a review from a team as a code owner November 29, 2025 02:23
Copy link
Contributor

@deralmas deralmas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great catch!

@akien-mga akien-mga added this to the 4.6 milestone Nov 29, 2025
@akien-mga akien-mga merged commit 4d07255 into godotengine:master Dec 1, 2025
20 checks passed
@akien-mga
Copy link
Member

Thanks!

@LanzaSchneider LanzaSchneider deleted the fix-wayland-logging-invalid-format branch December 1, 2025 10:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

X Tutup