Window.getModalHint

bool getModalHint()

Determines whether or not the window manager is hinted that window has modal behaviour.

Returns

whether or not the window has the modal hint set.