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

@ -64,6 +64,8 @@ public:
return empty;
}
virtual const char* getBackendName() const = 0;
virtual int getDecorationHeight() const {
return 0;
}