Incorrect positioning of popup window after restore of main gimp window on multi display system
GIMP version: 2.10.22
Operating System: Windows 10 Home
Package: gimp-2.10.22-setup.exe (I only ran this installer and installed no other extensions or such).
Description of the bug
When the gimp application is minimized while a popup window (dialog) is open on a second display while two displays are open as extended displays the position of the popup window after restore is not correct. I have a laptop with a second display attached to it (both laptop and second display are 1920x1080 displays but I don't know if the problem is resolution related. I guess not). The problem with the position of the popup window after restore depends on which display the gimp main window is. On one display the problem is that the popup window moves up after restore and on the other display the problem is that de popup window appears at the wrong display (see reproduction steps below).
Is the bug reproducible? Always
- Attach a second display to a laptop (maybe it also works with a second display on a pc, but I have a only reproduced it on a laptop with a second display). On my laptop, in the windows display settings, my laptop display is 1 and the second display is 2.
- In the windows display settings, set Multiple displays to 'Extend these displays' and make the second display the main display (check 'Make this my main display'). In my case display 2 is the main display.
- Open gimp on the laptop display. Now open the 'Create a New Image' popup window using File > New. Then minimize the Gimp main window using the minimize button on the right top of the main gimp window (second button left of the close button) while the 'Create a New Image' window is still open. This will also minimize the 'Create a New Image' window.
- Restore the main gimp window by clicking on its icon in the task bar. This will also restore the 'Create a New Image' window, but the 'Create a New Image' window is restored to the second display (I expected it to be restored to the laptop display where it was before minimization).
- Now close the Create New Image window and move the gimp main window to the second display.
- Open the 'Create a New Image' window again using File > New.
- Minimize the gimp main window. This will also minimize the 'Create a New Image' window.
- Restore the gimp main window. Now the 'Create a New Image' window is moved up some 100 pixels or so.
- Repeat the minimization and restoration of the gimp main window and the 'Create a New Image' window will move up more on every restore. Apart from this being nasty, it is also a problem because sometimes the top part (and in particular the title bar) of the 'Create a New Image' window is no longer visible and it cannot be moved down with the mouse anymore, since you cannot grab its title bar which has moved off the top of the display. If the lower part of the 'Create a New Image' window is still visible one can select it with the left mouse and then use Alt-Space to open the menu on the top left and choose M (Move) after which it can be moved down with the keyboard arrow down key (standard windows window behaviour) but this is a nuisance. …
Expected result: The popup windows (dialogs) of gimp are restored to the same position as where they were when the main window was minimized on a system that has multiple displays and multiple display setting set to "Extend these displays".
Actual result: The popup windows (dialogs) are restored to incorrect position on a system that has multiple displays and multiple display setting set to "Extend these displays" (see description of reproduction).
I have not been able to reproduce the problem with one display active, be it the laptop display or the second display. The problems only arise when the Multiple displays setting is 'Extend these displays'.
Note that it does not matter if the gimp main window is maximized or not. At least as far as I have seen the problem occurs both with maximized main window and with non-maximized main window.
Note that it happens with all popup windows (dialogs) that float on top of the main gimp window when opened, not only with the 'Create a New Image' window. The first time I noticed it was when I had gimp's main window maximized on my second display and left clicked change foreground color. When I minimized the main gimp window while the 'Change Foreground Color' window was still open and restored it, immedeately the title bar of the restored 'Change Foreground Color' window was not visible anymore (was moved above the top of the display) and I had to use the Alt-Space M method to move it down again.
I checked if I could reproduce this problem with another program (Notepad++) with the about dialog open but I could not which seems to suggest that it is not a general windows problem.