#1101896 nomacs: window moves downward at each restart: Y position increases between "show window:" and "active window:"

Package:
nomacs
Source:
nomacs
Description:
image viewer with capability of syncing multiple instances
Submitter:
Vincent Lefevre
Date:
2025-04-04 15:36:03 UTC
Severity:
normal
Tags:
#1101896#5
Date:
2025-04-02 00:24:07 UTC
From:
To:
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.

#1101896#10
Date:
2025-04-02 00:47:46 UTC
From:
To:
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:".

#1101896#17
Date:
2025-04-02 01:26:32 UTC
From:
To:
I've just reported the bug upstream.
#1101896#24
Date:
2025-04-04 15:32:28 UTC
From:
To:
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.