On Mon Sep 29 09:26:20 2025 +0000, Rémi Bernon wrote:
I think it would be better if we could avoid doing that, is it useful to have a non-empty rect for minimized windows? Is the window content still visible somehow? Could we keep track of non-minimized client window rect, instead of having to query and try reconstructing it with AdjustWindowRect?
Well, for a while now, macdrv windows have had empty previews in the Dock when minimized. I'm not sure why that is - we let the OS generate that thumbnail if the window isn't empty-shaped (see the various calls to `-[WineWindow grabDockIconSnapshotFromWindow:force:]`). I thought the backing size might be part of it, but it's still empty with this patch. So perhaps we can just have `-wine_updateBackingSize` fall through to the NULL case if either dimension of the size is 0. @bshanks Any idea whether maintaining the backing size is important for minimized windows?