Skip to content

OMT Mini 0.8.5

Choose a tag to compare

@ForesterMW ForesterMW released this 17 Sep 02:10
· 3 commits to main since this release

Fixes maximise, minimise and double click doing nothing, and resizing from the control panel crashing.

Maximise and minimise did nothing

The panel posts {"kind":"state", ... ,"state":"maximize"}, and the field reader looked for the quoted name anywhere in the body. Searching for "state" matched the value of kind first, so the field came back empty and every maximise and minimise fell through to restore. On an already restored window that does nothing at all, which is exactly what you saw.

A name only counts as a name when a colon follows it now. Tested against that exact body, against a value that reads like another key, and against a key name buried inside a string.

Resizing from the panel could crash it

Resizing a swap chain unbinds render targets and reallocates buffers on the shared graphics device, and it was doing that with no lock held while the multiview output thread could be part way through composing a frame on the same device.

Resizing with the mouse rarely collided with it. A resize arriving from a socket at an arbitrary moment does, which is why the desktop was fine and the browser was not.

Creating, resizing and destroying a swap chain now hold the device lock for the whole sequence.

The panel could make a window too small

Windows enforces a minimum size during a mouse resize, but not when a size is set programmatically, so the panel could take a window below anything the rest of the code expects. The same floor is now applied wherever a size is set, with an upper bound well below a swap chain the machine could not allocate.

The control panel is now labelled beta

It is the newest part of this and the one most likely to still have rough edges, so it says so on the page, in its settings tab and in the README.