When I exit nomacs, an incorrect window position is saved. The consequence is that each time I restart nomacs, its window moves 10 pixels downward (if I never move its window manually), and the window may partly appear off-screen. For instance, the following can be seen in the terminal after a restart: [INFO] restore geometry: QRect(160,112 1960x1285) windowState: QFlags<Qt::WindowState>(WindowNoState) [...] [INFO] save geometry: QRect(160,122 1960x1285) windowState: QFlags<Qt::WindowState>(WindowNoState) And after another restart: [INFO] restore geometry: QRect(160,122 1960x1285) windowState: QFlags<Qt::WindowState>(WindowNoState) [...] [INFO] save geometry: QRect(160,132 1960x1285) windowState: QFlags<Qt::WindowState>(WindowNoState) In case this matters, my window manager is FVWM 2.
Control: retitle -1 nomacs: window moves downward at each restart: Y position increases between "show window:" and "active window:" Actually there's more information. For instance: [INFO] restore geometry: QRect(160,173 1960x1285) windowState: QFlags<Qt::WindowState>(WindowNoState) [INFO] init window: appMode: 0 maximized: false fullscreen: false geometry: QRect(160,173 1960x1285) windowState: QFlags<Qt::WindowState>(WindowNoState) [INFO] show window: appMode: 0 maximized: false fullscreen: false geometry: QRect(160,173 1960x1285) windowState: QFlags<Qt::WindowState>(WindowNoState) [INFO] active window: appMode: 0 maximized: false fullscreen: false geometry: QRect(160,183 1960x1285) windowState: QFlags<Qt::WindowState>(WindowNoState) [...] [INFO] save geometry: QRect(160,183 1960x1285) windowState: QFlags<Qt::WindowState>(WindowNoState) The increase of the Y position occurs between "show window:" and "active window:".
I've just reported the bug upstream.
This is actually a bug in Qt 6 (but Qt 5 was already buggy, as this can be shown with a testcase in the upstream bug, copied from the upstream nomacs bug). It affects at least both nomacs (against which I had reported the bug) and qpdfview.