I am trying to use the bool onConfigureEvent(GdkEventConfigure* event, Widget widget) to store/restore Window position. I needed this because when onDestroy() handler gets called (user pressed the X button) the X and Y positions are by default set to 0. However, it seems that event.x and event.y coordinates are taken without window decorations. Is there a way to fix this?