Skip to content

Gui Window Size

frostworx edited this page Apr 11, 2021 · 3 revisions

When SAVESETSIZE is enabled in the Global Config (f.e. via Global Menu) (by default it is) resolution changes of every stl window are automatically saved when the corresponding window is closed. This function requires xwininfo to work. The config files are either used globally or per game, depending on the configuration: If USEGENGUICFG is disabled, the window sizes are stored per game into $STLGUIDIR/${AID}/$WINDOWTITLE.conf using $STLGUIDIR/template/$WINDOWTITLE.conf as template, if USEGENGUICFG is enabled only $STLGUIDIR/template/$WINDOWTITLE.conf is used.

If the template config for a windowtitle is not available yet, the initial value is calculated based on the screen-resolution. A temporary function migrates most entries from the former gui.conf into the new templates.

To sum it up: every possible Window by default has an own configfile per game, which is updated automatically when it changes (only width&height for now)

To save the resolution of the currently open window as template, the Tray-Icon can be used. After the button was activated, the template will be updates, as soon as the window is closed.

As usual windows resize either via window decoration or by holding Left-Alt while resizing the window while holding the right mouse button. The window decoration can be toggled in the Global Menu or directly in the Global Config

Clone this wiki locally