Detect window movement

Does it exist a way to detect if subwindow was moved by user? I can add
, but there is nothing like
I’d like to save window position, but only in case, that user moved the window. How can I recognize if window has been moved, or it is still on its default position?


the WindowServerRpc seems to receive a windowMoved event from the client side. There’s no clear server-side API to get the events from this but it looks like you should be able to subclass Window and provide your own WindowServerRpc implementation instead of using the default one. Once this is done, you should get an event of user-initiated window position changes and are free to store them in whichever way you need.


Works fine :slight_smile:
Thank you Teppo.

What about adding WindowMoveListener to vadin-server core?