mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-11-21 09:59:44 +00:00
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:
parent
01ed8b7dc5
commit
ab7f542d61
10 changed files with 133 additions and 17 deletions
|
|
@ -64,6 +64,8 @@ public:
|
|||
return empty;
|
||||
}
|
||||
|
||||
virtual const char* getBackendName() const = 0;
|
||||
|
||||
virtual int getDecorationHeight() const {
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue