Top window position, insets and listener

I need to get details about position/sizes of JME3 window. I know it is context dependent, but let’s focus on lwjgl for now. I’m able to retrieve x/y position of window using Display.getX and Display.getY, but:

  • it gives real window x/y and I would need coordinates of the jme3 canvas itself (so I need to know height to window titlebar at least)
  • I need some way to get notified about window being moved around - is there a better way than blind polling each frame?