Summary
Port LiveSplit/LiveSplit#2672 to livesplit-core.
Changes Required
Add two new boolean fields to GeneralLayoutSettings:
allow_resizing - when false, the host application should prevent the user from resizing the window via window handles. Defaults to true.
allow_moving - when false, the host application should prevent the user from moving the window by dragging. Defaults to true.
Details
These fields need to be:
- Added to the
GeneralLayoutSettings struct (with default values of true).
- Serialised and deserialised in the layout XML format (
allow_resizing / allow_moving elements, defaulting to true when absent for backwards compatibility).
- Exposed via the C API.
The actual window behaviour is enforced by the host (e.g. LiveSplit), but livesplit-core is responsible for storing and persisting the settings.
Reference
Summary
Port LiveSplit/LiveSplit#2672 to livesplit-core.
Changes Required
Add two new boolean fields to
GeneralLayoutSettings:allow_resizing- whenfalse, the host application should prevent the user from resizing the window via window handles. Defaults totrue.allow_moving- whenfalse, the host application should prevent the user from moving the window by dragging. Defaults totrue.Details
These fields need to be:
GeneralLayoutSettingsstruct (with default values oftrue).allow_resizing/allow_movingelements, defaulting totruewhen absent for backwards compatibility).The actual window behaviour is enforced by the host (e.g. LiveSplit), but livesplit-core is responsible for storing and persisting the settings.
Reference