开发者

How to know if a Xul window is minimized?

开发者 https://www.devze.com 2023-01-29 18:10 出处:网络
Xul\'s window.sizemode documentation says: When a window is minimized, the sizemode attribute is not updated.

Xul's window.sizemode documentation says:

When a window is minimized, the sizemode attribute is not updated. This is done so th开发者_运维百科at if a window is closed while minimized, its persisted sizemode attribute wouldn't be minimized.

so, is there a way to know when it's minimized?


The documentation you pointed said:

To get the window state from JavaScript code, use window.windowState.

The window.windowState link is broken. But I could find its documentation. It says you can check if the attribute windowState is equals to the constant STATE_MINIMIZED.

0

精彩评论

暂无评论...
验证码 换一张
取 消