Pasting/opening big images resizes the Gimp in single window mode
Environment/Versions
- GIMP version: 2.10.36
- Package: Installer from gimp.org
- Operating System: Windows 10 x64
Description of the bug
When opening or pasting an image into Gimp that is bigger than the current Gimp window, the Gimp window will resize. Depending on the position of the Gimp window the right and/or lower side of the Gimp window can be off screen. This only happens when the Gimp workspace was empty before opening/pasting.
Reproduction
Is the bug reproducible? Always
Reproduction steps:
- Open Gimp (workspace has to be empty) and make the Gimp window small
- (Copy image data that is wider than the Gimp workspace from another application, e.g. XNview or paint.net)
- Open or paste image into Gimp (both "Edit > Paste" and "Edit > Paste as New Image [Shift+Ctrl+v] trigger the bug)
Expected result:
The Gimp window size should remain unchanged and the image should be displayed according to the setting "Image Windows > Initial zoom ratio".
Actual result:
The Gimp window resizes to accommodate the image. The "Initial zoom ratio" setting is bugged too. When set to "Show entire image", the image is usually zoomed out, but not enough to actually show the whole image (should this be a separate bug report?).
When the Gimp workspace is not empty (one or more images already open), opening or pasting a big image will not resize the Gimp window. In that case, Gimp behaves as expected.
It can be argued that resizing the Gimp window could be an option that can be enabled or disabled in the settings. But, under no circumstances should the Gimp window change to a size that renders parts of the window inaccessible (off screen).