Skip to content

Enabling fullscreen via code shows window border at screen edges (DisplayServer regression) #63500

Closed
@RedMser

Description

@RedMser

Bugsquad note: This issue has been confirmed several times already. No need to confirm it further.


Godot version

4.0.dev (835da44)

System information

Windows 10, Vulkan Clustered, 3 monitor setup

Issue description

When changing fullscreen mode via code, the window's border is visible at the edges of the screen. This does not happen when enabling the fullscreen project setting instead.

Launching the MRP with a high contrast theme (where window borders are white) with x10 zoom on the top left corner of my screen:
image

When using the default Windows 10 theme:
image

This confirms that you see the window's borders.

Steps to reproduce

Create a fresh project. Then either in _ready, or when pressing a key, run:

get_tree().root.mode = Window.MODE_FULLSCREEN
# This does not help:
#get_tree().root.borderless = true

Minimal reproduction project

win_fullscreen_border.zip

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions