If a window is maximized using winset(src, "main", "is-maximized=true"), the window cannot be minimized using winset(src, "main", "is-minimized=true") until is-maximized is set to false.
Numbered Steps to Reproduce Problem:
1. Create a window without a toolbar
3. Add 2 buttons for minimize and maximize (code below)
4. Press the maximize button
5. Press the minimize button
Code Snippet (if applicable) to Reproduce Problem:
client
verb
Minimize()
winset(src, "main", "is-minimized=true")
Maximize()
if(winget(src, "main", "is-maximized")=="true")
winset(src, "main", "is-maximized=false")
else
winset(src, "main", "is-maximized=true")
Expected Results:
The window should minimize
Actual Results:
The window flickers
Does the problem occur:
Every time? Or how often? Yes, every time
In other games? Unknown
In other user accounts? Unknown
On other computers? Unknown
When does the problem NOT occur?
Unknown
Workarounds:
If you use the maximize button first to un-maximize, you then can minimize.