workspaces: Creation of second workspace doesn't always trigger
At start of cosmic-comp and cosmic-panel, the workspaces applet does not seem to show the second workspace when it is created automatically by opening a window on the first workspace. Despite the fact the applet is successfully receiving the workspace update from the compositor.
This is fixed by changing workspaces, or moving the mouse over the applet.
After closing the window so there's only one workspace, opening a window again does have this issue though. Nor does switching to the next workspace and opening another window. I'm not sure why.
It looks like this is a bug in the auto-sizing handling in iced_winit? As far as I can tell. It appears https://github.com/pop-os/iced/blob/4ea727c08ea78053aac78d7b6c5a1faedcd43239/winit/src/program.rs#L1459-L1468 sends the RequestResize event , then https://github.com/pop-os/iced/blob/4ea727c08ea78053aac78d7b6c5a1faedcd43239/winit/src/program.rs#L1560-L1565 runs the update() method of the application. So it has already decided a resize isn't needed before it processes the workspace message from the subscription. And the resize then doesn't happen until a later message.