Table of Contents

Enum DisplayServer.WindowFlags

Namespace
Godot
Assembly
GodotSharp.dll
public enum DisplayServer.WindowFlags : long

Fields

AlwaysOnTop = 2

The window is floating on top of all other windows. This flag is ignored for full-screen windows.

Borderless = 1

The window do not have native title bar and other decorations. This flag is ignored for full-screen windows.

ExtendToTitle = 6

Window content is expanded to the full size of the window. Unlike borderless window, the frame is left intact and can be used to resize the window, title bar is transparent, but have minimize/maximize/close buttons.

Use WindowSetWindowButtonsOffset(Vector2I, int) to adjust minimize/maximize/close buttons offset.

Use WindowGetSafeTitleMargins(int) to determine area under the title bar that is not covered by decorations.

Note: This flag is implemented only on macOS.

Max = 8

Max value of the DisplayServer.WindowFlags.

MousePassthrough = 7

All mouse events are passed to the underlying window of the same application.

NoFocus = 4

The window can't be focused. No-focus window will ignore all input, except mouse clicks.

Popup = 5

Window is part of menu or OptionButton dropdown. This flag can't be changed when the window is visible. An active popup window will exclusively receive all input, without stealing focus from its parent. Popup windows are automatically closed when uses click outside it, or when an application is switched. Popup window must have transient parent set (see WindowSetTransient(int, int)).

ResizeDisabled = 0

The window can't be resized by dragging its resize grip. It's still possible to resize the window using WindowSetSize(Vector2I, int). This flag is ignored for full screen windows.

Transparent = 3

The window background can be transparent.

Note: This flag has no effect if ProjectSettings.display/window/per_pixel_transparency/allowed is set to false.

Note: Transparency support is implemented on Linux (X11), macOS and Windows, but availability might vary depending on GPU driver, display manager, and compositor capabilities.