Add display settings for the wayland window frame

The frame the native wayland backend draws gets three switches in the
display tab: a narrow 24px bar instead of the 48px one, the shadow with
the outer resize area, and redrawing the content while the window is
resized (off keeps the previous behaviour of stretching the last frame).

The settings are applied at runtime: the bar geometry is rebuilt and the
surface is resized together with the toplevel geometry, no restart needed.
The narrow bar drops the insets and the gap of its controls, so that they
sit flush against the window edge.

The switches are hidden outside of the wayland backend, which reports its
name through Window::getBackendName().
This commit is contained in:
alexei-zebra 2026-10-10 00:12:37 +03:00
parent 01ed8b7dc5
commit ab7f542d61
No known key found for this signature in database
GPG key ID: D19D450AC3D9A80E
10 changed files with 133 additions and 17 deletions

View file

@ -38,6 +38,12 @@ struct DisplaySettings {
FlagSetting limitFpsIconified {false};
/// @brief Adaptive framerate in menu (experimental)
FlagSetting adaptiveFpsInMenu {false};
/// @brief Draw the narrow (24px) window bar instead of the 48px one
FlagSetting compactWindowBar {false};
/// @brief Draw the window shadow and keep the outer area for resizing
FlagSetting windowShadow {true};
/// @brief Render the window content every frame while it is resized
FlagSetting liveResize {true};
};
struct ChunksSettings {