After changing layer visibility, user's next click falls through to canvas beneath Layers window
GIMP version: 2.10.8
Operating System: macOS 10.12.6
Package: Gimp.org version
Description of the bug
When changing the visibility of a layer, the Layers window becomes inactive and the user's next click falls through to any canvas beneath it.
Reproduction
Sometimes reproducible - not always. See additional notes.
Reproduction steps:
- Make a new image. Switch to the Pencil tool and have a draw-able layer on the canvas.
- Create another layer above the background (drawable) layer.
- Move the canvas window so that a part of the canvas is over the layer visibility toggles (eye toggles). For this to work, the layers window and the canvas have to be different windows.
- Click on the Layers window to bring it to the front.
- Click on an eye icon to hide one of the layers.
- Click on the same place again.
Expected result: The layer is made (in)visible. The Layers window remains active to receive the second click, which restores the visibility of the layer.
Actual result: The layer is made (in)visible. The Layers window appears to remain active but does not; the canvas window is now active (despite not appearing to be active and still being covered by the Layers window), and is the one that receives the second click.
Additional Notes
After doing steps 1-6, I was able to stop the bug from happening by Cmd+Tabbing out to write this and coming back and trying the steps 3-6 again. However, starting from the beginning of the steps (including creating a new image) caused the bug to reoccur.
The bug will not occur under any circumstances if the canvas is not underneath the section of the Layers window the user clicks.