elect
05/11/2019, 3:00 PMtailrec fun Window.getParent(): Window {
val parent = parentWindow
return when {
flags has Wf.ChildWindow && flags hasnt (Wf.Popup or Wf.ChildMenu) -> if(parent != null) getParent() else this
else -> this
}
}