ID:2099675
 
(See the best response by Lummox JR.)
I want to call a command when the player resizes the game's window to get their window's size, and it's working great so far. However, when they press maximize, it returns the old window's size. I wonder if this is a bug, or if I have to change the command:

mob/verb/Resize()
world<<winget(src, "Game", "size")


I even tried to maximize the window through that command, but it still returns the same value.


mob/verb/Resize()
winset(src, "Game", "is-maximized=true")
world<<winget(src, "Game", "size")


Thanks !
The size value returns the normal non-maximized size. That's intended behavior.
In response to Lummox JR
Lummox JR wrote:
The size value returns the normal non-maximized size. That's intended behavior.

Is there a way to get the maximized window's size?
Best response
At present, the only way is if the window has a control covering its entire size (e.g. a child) and grabbing that instead.

I think it probably makes sense to add something like inner-size and outer-size to windows, to clarify.
In response to Lummox JR
Thanks a lot :)